Which function would you use to replace a record in a database in php?



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

Post New Answer

More PHP Interview Questions

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?

6 Answers  


Can we override static method in php?

1 Answers  


How will you calculate days between two dates in PHP?

1 Answers  


Write a program to find no of days between two dates in php?

1 Answers  


Is php 5 still supported?

1 Answers  


Explain $_FILES Superglobal Array?

1 Answers  


Can we use include ("xyz.php") two times in a php page "index.php"?

1 Answers  


Which character is used to match exactly one character?

1 Answers  


What are php loops?

1 Answers  


How to find the index of an element in an array php?

1 Answers  


How to concatenate two strings together in php?

1 Answers  


How do I run php?

1 Answers  


Categories