CODE:
$query="UPDATE americana SET 7='99' WHERE Bdate='2011-04-15'";
mysql_query($query);
NOTICE:7 and Bdate are column names.
ERROR: Database query faild: 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 ‘7=’99’ WHERE
Bdate=’2011-04-15” at line 1.
Any idea on how to solve this problem?
enclose 7 in backticks `