Answers for "call to undefined function mysql_connect()"

PHP
0

call to undefined function mysql_connect()

Try checking to see if the PHP MySQL extension module is being loaded:

<?php
    phpinfo();
?>

If it's not there, add the following to the php.ini file:

extension=php_mysql.dll

Save and Restart You Apache HTTP Server
Posted by: Guest on April-21-2020
1

Uncaught Error: Call to undefined function DatabaseOld\mysqli_connect()

sudo apt install php-mysqli
Posted by: Guest on February-29-2020
0

Call to undefined function mysql_connect()

In case, you are using PHP7 already, the formerly deprecated functions
mysql_* were removed entirely, so you should update your code using the
PDO-functions or mysqli_* functions instead.

If that's not possible, as a workaround, rubo77 created a small PHP include
file, that recreates the old mysql_* functions with mysqli_*()-functions:
https://github.com/rubo77/php-mysql-fix
Posted by: Guest on March-25-2021

Code answers related to "call to undefined function mysql_connect()"

Browse Popular Code Answers by Language