todayme Posted March 7, 2007 Share Posted March 7, 2007 I have this code below but I need to Insert into a particular record where the record ID = x. Basically what I am trying to do is update a persons profile with new information. Like change there password etc. Can someone please show me what the correct syntax is, I havent been able to find it on the net. This is the code I need to change: $sql = mysql_query("INSERT INTO _User (Email, Password, Address, Suburb, PostCode, Phone, Mobile) VALUES ('$useremail','$userpassword','$dbLocation','$useraddress','$usersuburb','$userpostcode','$userphone','$usermobile')") or die (mysql_error()); Link to comment https://forums.phpfreaks.com/topic/41599-insert-values-into-table-where-x-variable/ Share on other sites More sharing options...
monk.e.boy Posted March 7, 2007 Share Posted March 7, 2007 You can't find it on the net ;D :D ;D Try http://www.tizag.com/mysqlTutorial/mysqlupdate.php monk.e.boy Link to comment https://forums.phpfreaks.com/topic/41599-insert-values-into-table-where-x-variable/#findComment-201552 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.