警告:mysqli_query()预计至少2个参数,1 C中给出:\ Apache24 \ htdocs中\上线世界之窗\的index.php 27Recieving错误连接到数据库时
警告:mysqli_num_rows()预计参数1 mysqli_result,null在C:\ Apache24 \ htdocs \ TheWorld \ index.php中给出的第29行
警告:mysqli_query()需要至少2个参数,在C:\ Apache24 \ htdocs \ TheWorld \ index中给出1 .php on line 31
警告:mysqli_num_rows()期望参数1为mysqli_result,null中给出C:\ Apache24 \ htdocs \ TheWorld \ index.php,第33行
警告:mysqli_query()预计至少2个参数,1 C中给出:\ Apache24 \ htdocs中\上线55
.... 世界之窗\的index.php和我的代码是:
第27行:
$u_check = mysqli_query("SELECT username FROM users WHERE username='$un'");
上线29
:
$check = mysqli_num_rows($u_check);
上线31
:
$e_check = mysqli_query("SELECT email FROM users WHERE email='$em'");
第33行:
$email_check = mysqli_num_rows($e_check);
,并在第55行:
$query = mysqli_query("INSERT INTO users VALUES ('','$un','$fn','$ln','$em','$pswd','$d','0','Write something about yourself.','','','no')");
是否有人可以帮忙吗?
的可能重复的[mysqli的\ _query期望至少2个参数(http://stackoverflow.com/questions/8073278/mysqli-query-expects-at-least-2-parameters) – JasonMArcher 2014-12-30 18:30:01