$query="insert into jcheng (id, http, sming) values ('','$http','$sming')";  
config。php里面包含mysql_connect()了么?

解决方案 »

  1.   

    先谢谢你的回复!
    包含的有啊!我的config.php是这样写的!
    <?
    $host="localhost";
    $user="root";
    $password="fffff";
    $database="http";
    mysql_connect($host,$user,$password)or die ("不能连接服务器!");
    @mysql_select_db($database)or die("找不到数据库!");
      

  2.   

    If 'id' is auto type.Don't input 'id'.
      

  3.   

    right,希望MYSQL几时有完整的事务处理就好了。
      

  4.   

    insert into  jcheng set id='',http='$http',sming='$sming'
    我不知道真的有这种SQL语句吗?
    好像应该是:
    insert into (.........) values(............)