Tuesday, 21 February 2017

php - Uncaught Error: Call to undefined function mysql_connect()





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




How to solve this??


Answer



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


No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...