Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uncaught Error: Call to undefined function mysql_connect() [duplicate]

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??

like image 548
Amar Muratović Avatar asked Jan 04 '16 20:01

Amar Muratović


People also ask

What is Call to undefined function mysql_connect ()?

If you get an error like Fatal error: Call to undefined function mysql_connect() when trying to install GFI HelpDesk, it probably means that MySQL support has not been enabled for PHP on your server (that is, the PHP module php-mysql has not been installed).

How do I fix uncaught error in php?

Solution. Look for the undeclared variables as given in the error. If you are using inbuilt functions, ensure that there is no typo and the correct function is called. Check if the spellings are correct.

What is uncaught error in php?

When an exception is thrown, the code following it will not be executed, and PHP will try to find the matching "catch" block. If an exception is not caught, a fatal error will be issued with an "Uncaught Exception" message.

What is uncaught mysqli_SQL_exception?

Fatal error: uncaught mysqli_SQL_exception: you have an error in your SQL syntax; check the manual that corresponds to your mariadb server version for the right syntax to use. How to slove fatal error: uncaught typeerror. Last Updated 12 Apr 2022.


1 Answers

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

like image 143
Stone Deft Avatar answered Oct 15 '22 05:10

Stone Deft