Jump to content

Insert values into table where x = variable


todayme

Recommended Posts

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()); 







Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.