php mysqli 找不到,php – 找不到类’mysqli_connect’

缪阎宝
2023-12-01

好的,所以现在这是我的问题.我使用的是PHP 5.5.12和MySQL 5.6.17. php mysqli_connect在我的php设置上检查但仍然出错.有帮助吗?提前致谢.

这是我的dbcon.php

//Connect to the database

$link = new mysqli_connect ("localhost", "root", "", "towertec_master");

if (mysqli_connect_errno())

{

printf("Connect failed: %s\n", mysqli_connect_error());

exit();

}?>

这是我的main.php

include ("lib\dbcon.php");

// is a client logged in?

include("lib/login_check.php");

include("lib/fetch_org_data.php");

$thispage="main";

?>

这是错误消息:

Fatal error: Class 'mysqli_connect' not found in C:\wamp\www\Trading\lib\dbcon.php on line 3

Call Stack

# Time Memory Function Location

1 0.0014 244472 {main}( ) ..\main.php:0

2 0.0023 247912 include( 'C:\wamp\www\Trading\lib\dbcon.php' ) ..\main.php:2

 类似资料: