mysql_query($sql);
echo mysql_error();

解决方案 »

  1.   

    在数据库里先试试insert into computers (name,price,author) values ('天下足球',20,'你好')这句能否插入到数据库。
      

  2.   

    顺便帮我解决这个问题,谢谢了先(特级)
    http://topic.csdn.net/u/20081015/11/b8a41991-407d-43b8-8fb9-7ddddcb8888a.html
      

  3.   

    在数据库里先试试insert into computers (name,price,author) values ('天下足球',20,'你好')这句能否插入到数据库。
    建议楼主把表结构贴出来。
      

  4.   

    搞定了,谢谢大家了
    加一句mysql_query("set names 'gbk' ");就行了