本帖最后由 neuuuuuuu 于 2014-12-20 19:20:25 编辑

解决方案 »

  1.   

    错误提示有两个? 
    echo $sql; 贴出结果看看。
      

  2.   

    Unknown column 'name' in 'field list ;
    name 字段不存在,请检查Error: 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 2$sql="insert into shopsystem(name,tel,email,QQ,addr,sex,brandname,commoditybrand,productID,ordername,shopname,shopaddr,invoicenumber,purchasingdate) 
    values('$name','$tel','$email','$QQ','$addr','$sex','$brandname','$commoditybrand','$productID','$ordername','$shopname','$shopaddr','$invoicenumber','$purchasingdate')";
    if (!mysql_query($sql,$conn))values 前加个空格试试。
      

  3.   

    shopsystem(name,tel,email,QQ,addr,sex,brandname,commoditybrand,productID,ordername,shopname,shopaddr,invoicenumber,purchasingdate)
    这里面的字段全用`name`,`tel`,这样的试试,Esc下面的那个键
      

  4.   

    单引号问题吧。。
    建议用拼接$sql="insert into shopsystem(name,tel,email,QQ,addr,sex,brandname,commoditybrand,productID,ordername,shopname,shopaddr,invoicenumber,purchasingdate)
    values('".$name."','".$tel."','    ....