我的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 ''' at line 9
在我的文件中,我甚至没有第9行的任何内容,而html文件只有1行。
以下是我文件中的第7行到第14行:
$query = "SELECT * FROM 3zonesField WHERE ID = '0' LIMIT 1";
$result = mysql_query($query) or die(mysql_error());
print_r($result);
$Field = mysql_fetch_assoc($result);
$query = "SELECT * FROM 3zonesHouse WHERE ID = '0' LIMIT 1";
$result = mysql_query($query) or die(mysql_error());