This question already has an answer here:
这个问题在这里已有答案:
- Why shouldn't I use mysql_* functions in PHP? 14 answers
为什么我不应该在PHP中使用mysql_ *函数? 14个答案
Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\phoenixproject\register.php:9 Stack trace: #0 {main} thrown in C:\xampp\htdocs\phoenixproject\register.php on line 9
未捕获错误:在C:\ xampp \ htdocs \ phoenixproject \ register.php中调用未定义函数mysql_connect():9堆栈跟踪:在第9行的C:\ xampp \ htdocs \ phoenixproject \ register.php中抛出#0 {main}
How to solve this??
怎么解决这个?
1 个解决方案
#1
4
It is most likely MySql extensions are not being loaded. Open your php.ini file and check if extension=php_mysql.dll and extension=php_mysqli.dll is uncommented
很可能没有加载MySql扩展。打开php.ini文件并检查extension = php_mysql.dll和extension = php_mysqli.dll是否已取消注释
#1
4
It is most likely MySql extensions are not being loaded. Open your php.ini file and check if extension=php_mysql.dll and extension=php_mysqli.dll is uncommented
很可能没有加载MySql扩展。打开php.ini文件并检查extension = php_mysql.dll和extension = php_mysqli.dll是否已取消注释