Reputation: 39
I believe I have a issue with in mysql query. Please take a look at the code and let me know if there is something wrong in this statement.
$sql = "UPDATE `Blog` SET `Employee_Name` = '$emp_name', 'Employee_Email' = '$emp_email' WHERE `Blog`.`Id` = '$emp_id'";
Upvotes: 1
Views: 37
Reputation: 360672
Bad quoting:
$sql = "UPDATE `Blog` SET `Employee_Name` = '$emp_name', 'Employee_Email' = '$emp_email'
^--------------^---
The indicated quotes should be backticks (`), not single quotes (').
And if you had proper (or any at all) proper error handling on your query calls, you'd have been told about the syntax error.
Upvotes: 1