让我们看看是否有人可以在我调试之前回答这个问题。这是我尝试更改的语法问题。我经常犯这个错误,我想一个明确的事实说明我为什么这样做会有所帮助。
提前致谢!
这次的错误:
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 ' 'Andrew', 'West', '***@gmail.com',
'7*7 **', '', ' at line 14
使用的代码:
$db_insert = mysql_query("INSERT INTO catches (
catch_affid,
catch_firstname,
catch_lastname,
catch_email,
catch_street1,
catch_street2,
catch_city,
catch_state,
catch_postalcode,
catch_country,
catch_contactid
) VALUES (
$a,
'$f',
'$l',
'$e',
'$s1',
'$s2',
'$c',
'$s',
$p,
'$cy',
'$cid'
)");