Inserting data in mysql database with php -


i trying insert data in existing row know how fill table using php code this:

"insert table (name, email, surname)values('{$name}','{$email}','{$surname}')";

and situation once create want add more info specific name. example if have created row in table in name josh , later want add phone number. question how can edit table row once created? how can add info?

you need update statement, @ syntax

http://www.w3schools.com/php/php_mysql_update.asp

update table set phone_number=value, ... name="josh"  

but need have created such column in table


Comments