I am running PHP 5.2.0 and mysql 5.0.19
This is my database structure and i am trying to update one feild.
[code]
Field Type Null Default
id smallint(10) No
full varchar(60) No
small varchar(60) No
company varchar(60) No
url varchar(100) No
description longtext No
count int(10) No 0
[code=php]
mysql_query(“UPDATE “.$database.” SET count = (count+1) WHERE url = ‘”.$url.”‘ “) or die (“Can not update database, please try again. 1 ::<br /><br /> ” . mysql_error ());
but i keep getting this error and i can’t see where i am wrong.
[code=php]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 ‘SET count = (count+1) WHERE url = ‘http://www.inboxdesign.co.nz” at line 1
Thanks
here is a print out of the query
[code=php]UPDATE portfolio SET count = (count+1) WHERE url = ‘http://www.inboxdesign.co.nz’