I am having a problem with my syntax in a mysql_query command
I get the error message
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`departmental_reviews` = `1`, `department` = `General`, `added_by` = `geve' at line 13
The syntax im using is:
$sql_insert="UPDATE `masterlogin`.`sc_users` SET `name` = `$saved_name`,
`username` = `$user_name`,
`password` = `$encrypted_password`,
`db`=`$db`,
`email` = `$saved_email`,
`dateregistered` = `$today`,
`picname`=`$picname`,
`super_admin`= `$super_admin`,
`full_admin` = `$full_admin`,
`data_entry` = `$data_entry`,
`report_access` = `$report_access`,
`audit` = `$audit`
`departmental_reviews` = `$departmental`,
`department` = `$department`,
`added_by` = `$added_by`,
`admin_db` = `$admin_db`,
WHERE `sc_users`.`id` = $pulled_id LIMIT 1 ";
Any idea what im doing wrong?
I notice that the phpmyadmin uses ` instead of ' but i have tried it both ways
it was working until i added a couple of fields, they are all in the database though and spelled properly