call to undefined function mysql_connect()
snippet in php

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

user5439

sudo apt install php-mysqli

call to undefined function mysql_connect()

user3760

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