这个错误提示是因为在第11行使用了错误的语法。正确的语法应该是:

$conn = new mysqli($servername, $username, $password, $dbname);

请注意,mysqli是一个类,需要使用new关键字来实例化,并且不需要在后面添加"_connect"。

php 获取提交的用户名和密码$username = $_POSTxm;$password = $_POSTpw; 连接MySQL数据库$servername = 1013323740;$dbname = hlju;$username = hlju;$password = hd123456;$conn = new mysqli_connect$servername $username $passw

原文地址: https://www.cveoy.top/t/topic/fG6E 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录