Android Question MySQL php connection error

enrico

Active Member
Licensed User
Longtime User
After changing my site provider, I changed $databasename, $databaseusername and $databasepassword in the php file but I get
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/mhd-01/www.mynewsite.com/htdocs/phpfile.php:8
Stack trace: #0 {main} thrown in /home/mhd-01/www.mynewsite.com/htdocs/phpfile.php on line 8

Line 8 is :
$con = mysql_connect($databasehost,$databaseusername,$databasepassword) or die(mysql_error());
 
Top