Hunkorama417
06-07-2001, 03:01 PM
I'm testing scripts on my local machine and the following query works fine when I substitue the variables with actual data and run it via phpMyAdmin; however, when I run the query via a PHP script is returns the following:
You have an error in your SQL syntax near '; UPDATE categories SET lastModified='991965478' WHERE id='1'' at line 1
It's rather weird because I've tried echoing the string and it appears fine w/ no errors. What's wrong w/ the following query:
mysql_query("UPDATE photos SET catID='$catID', description='$description', ratingDividen='$ratingDividen', ratingDivisor='$ratingDivisor' WHERE id='$imgID'; UPDATE categories SET lastModified='$timestamp' WHERE id='$catID'");
------------------
Andrew
http://www.digi-FX.net
andrew@digi-fx.net
You have an error in your SQL syntax near '; UPDATE categories SET lastModified='991965478' WHERE id='1'' at line 1
It's rather weird because I've tried echoing the string and it appears fine w/ no errors. What's wrong w/ the following query:
mysql_query("UPDATE photos SET catID='$catID', description='$description', ratingDividen='$ratingDividen', ratingDivisor='$ratingDivisor' WHERE id='$imgID'; UPDATE categories SET lastModified='$timestamp' WHERE id='$catID'");
------------------
Andrew
http://www.digi-FX.net
andrew@digi-fx.net