我正在制作登录页面。与mysqli的连接不断向我显示这条消息:
致命错误:调用未定义的函数new_mysqli() 第8行的C:\ wamp \ www \ work \ conn.php
conn.php :
<?php
$dbhost = "loaclhost";
$dbuser = "root";
$dbpass = "";
$dbname = "users";
$conn = new mysqli($dbhost, $dbuser, $dbpass, $dbname);
?>
答案 0 :(得分:1)
将$dbhost = "loaclhost";
更改为$dbhost = "localhost";