Jump to content

Edit mysql


RON_ron

Recommended Posts

I want to modify a record in my mysql. But this code doesn't seem to work. Could you please help?

 

$SomeVar = $_POST['finco'];
mysql_query("UPDATE distributors SETsuburbz='$addressx', addressz='$suburbx', statez='$statex', postalz='$postalx', countryz='$countryx', telephonez='$telephonex', emailz='$emailx', companyz='$companyx' WHERE codez = '".$SomeVar."'");

$result = mysql_query($query);

$sentOk = "Edit Successful!";
echo "sentOk=" . $sentOk;
?>

Link to comment
https://forums.phpfreaks.com/topic/212855-edit-mysql/
Share on other sites

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.