I am trying to insert data in existing row i know how to fill table using php code like this:
"INSERT INTO table (name, email, surname)VALUES('{$name}','{$email}','{$surname}')";
And my situation is that once i create it i want to add more extra info for the specific name. For example if i have created row in table in the name Josh and later i want to add his phone number. Basically my question is how can i edit table row once it is created? How can i add this extra info?
you need update
statement, look at syntax
http://www.w3schools.com/php/php_mysql_update.asp
UPDATE table
SET phone_number=value, ...
WHERE name="Josh"
but you need to have created such column in your table
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.