I want to overwrite information in a certain record with new info.
I am trying
$sql = "REPLACE INTO tblUser (CName, CPhone, CFax, CLogIn, CPass, CEmail)
WHERE tblUser.CName = '$CurrentUser'
VALUES ('$CName', '$CPhone', '$CFax', '$CLogIn', '$CPass', '$CEmail')";
$result = mysql_query($sql)
or die(mysql_error());
but I get the error message;
You have an error in your SQL syntax near 'WHERE tblUser.CName = 'g' VALUES (' go', 'go', 'go', 'go', 'go', 'gog')' at line 2
looking at mysql manual it doesn't make any reference to the use of WHERE in the query, but how can I replace information in a specific row without a WHERE clause?
TIA