Can someone tell me why I cannot perform this simple script. The error I get is 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 '1update page SET RegionId = 1 WHERE (RegionId = -1 or RegionId = -3) and Descri' at line 1 If I copy this statement in to MySQLPHPAdmin it runs fine. Please help? Thanks in advance.
$sql = "update page SET RegionId = 2 WHERE (RegionId = -1 or RegionId = -3) and Description like '%Saskatoon%' LIMIT 1";
$sql = $sql . "update page SET RegionId = 1 WHERE (RegionId = -1 or RegionId = -3) and Description like '%Regina%' LIMIT 1";
echo $sql;
mysql_query($sql) or die( mysql_error());