Help needed

I keep getting this error

Yes6You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘check = ‘0’ WHERE id = ‘6’’ at line 1

off this code

[php]

$link_id = $row_links[‘id’];
$sql_update = “UPDATE links SET check = ‘0’ WHERE id = ‘$link_id’”;
$result = mysql_query($sql_update, $connection) or die(mysql_error());

[/php]

I’ve checked it and double checked it but cant see anything wrong.

Any ideas

[php]

$link_id = $row_links[‘id’];
$sql_update = “UPDATE links SET check = ‘0’ WHERE id = ‘$link_id’”;
$result = mysql_query($sql_update, $connection) or die(mysql_error());

[/php]
http://dev.mysql.com/doc/refman/4.1/en/ … words.html

:oops: :oops: :oops:
Sponsor our Newsletter | Privacy Policy | Terms of Service