嘿,我正在使用xampp并尝试运行localhost,但在connect.php中不断收到错误...错误如下
致命错误:未被捕获的错误:调用C:\ xampp \ htdocs \ admin panel \ connect.php:9中未定义的函数mysql_connect()堆栈跟踪:#0 C:\ xampp \ htdocs \ admin panel \ index.php(16) :include()#1 {main}在第9行的C:\ xampp \ htdocs \ admin panel \ connect.php中抛出
我的connect.php代码如下
<?php
$servername = "localhost";
$username = "root";
$password = "";
mysqli_connect($servername,$username,$password) or die('cannot connect to
the server');
?>
Run Code Online (Sandbox Code Playgroud)
这个你能帮我吗。
| 归档时间: |
|
| 查看次数: |
106 次 |
| 最近记录: |