出现这个错误, 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 1
字段userid是什么类型,如何定义的? 另外哪些字段定义为不能为空?
还是你的输入值有类似'这种的符号,最好把sql也给echo 出来看看
$sql="insert into dede_ypdata(userid,passwd,Class1,Class2,Taxis ,Area,City,Name,Corp_code,Address,Linkmane,Tel1,tel2,Fax,Post,Mail,Url,Map,QQ,Bus,Content ,Class3) values ('$userid','$passwd','$Class1','$Class2','$Taxis','$Area','$City','$Name','$Corp_code','$Address','$Linkman','$Tel1','$Tel2','$Fax','$Post','$Mail','$Url','$Map','$QQ','$Bus','$Content','$Class3'),"; ==>$sql="insert into dede_ypdata(userid,passwd,Class1,Class2,Taxis ,Area,City,Name,Corp_code,Address,Linkmane,Tel1,tel2,Fax,Post,Mail,Url,Map,QQ,Bus,Content ,Class3) values ('$userid','$passwd','$Class1','$Class2','$Taxis','$Area','$City','$Name','$Corp_code','$Address','$Linkman','$Tel1','$Tel2','$Fax','$Post','$Mail','$Url','$Map','$QQ','$Bus','$Content','$Class3')"; 多了一个","
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 1
另外哪些字段定义为不能为空?
多了一个","