$result=@mysql_db_query("edt2001_web",$dbcon,"select * from user") or die("have a wrong!");漏了 $dbcon

解决方案 »

  1.   

    $conn=mysql_connect($host,$user,$password);
    mysql_select_db("edt2001_web",$conn);
    $result=mysql_query("select * from user") or die("have a wrong!");
      

  2.   

    上面错了:
    $result=@mysql_db_query("edt2001_web","select * from user",$dbcon) or die("have a wrong!");$dbcon 可以省略,不好意思
    应该是楼上说的
      

  3.   

    anziqi(美洲狮) (  )
    说得对啊,可是我犯了一个错误,我把所有的用户都删了,包括root
    还有没有什么办法啊!
    怎么办啊!
    MySQL 返回:
    Host 'sus' is not allowed to connect to this MySQL server