Hi.
Thanks for the help.
So make it like this ?
$query = "UPDATE listings SET approved = 'N', delete = 'Y', comments = '$comments' WHERE id='$id' AND client_id = '$user_id'";
$result = mysql_query($query); // Run the Query.
mysql_error();
I outputted the query which looks like this :
UPDATE listings SET approved = 'N', delete = 'Y', comments = 'Cos I want to :)' WHERE id='6' AND client_id = '1'
When placing the query into MyPanl I get:
#1064 - 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 'delete = 'Y', comments = 'Cos I want to :)' WHERE id='6' AND client_id = '1'' at line 1
- is 'delete' a keyword?