Which function would you use to replace a record in a database in php?
Answer / Arvind Kumar Tiwari
To update a record in a MySQL database using PHP, you can use the mysql_query() function along with the SQL UPDATE statement. For example: $query = 'UPDATE table SET column = 'new_value' WHERE id = 'specific_id'; $result = mysql_query($query);'
| Is This Answer Correct ? | 0 Yes | 0 No |
Suppose a variable may passed to other page using any of get,post,session,cookie methods and u want to retrive that variable value . what is the syntax?
Can we override static method in php?
How will you calculate days between two dates in PHP?
Write a program to find no of days between two dates in php?
Is php 5 still supported?
Explain $_FILES Superglobal Array?
Can we use include ("xyz.php") two times in a php page "index.php"?
Which character is used to match exactly one character?
What are php loops?
How to find the index of an element in an array php?
How to concatenate two strings together in php?
How do I run php?