<?php
.
.
.
mysql_connect($host,$username,$password);
if (!mysql_select_db($database))
die("Can't select database");
$query="UPDATE table SET a='$A', b='$B', c='$C', WHERE id='$ID'";
$checkresult = mysql_query($query);
if ($checkresult) {
echo "Success";
} else {
echo "Sorry, it failed !";
}
mysql_close();
?>
The script will edit and replace the field with new information gained by input.
It will echo Success as expected, but the row hasn’t changed.
How can this be fixed?
change this:
with this: