I have mysql-installer-web-community-5.6.25.0, apache_2.4.2-x86-no-ssl and php-5.4.42-Win32-VC9-x86 installed.
php is working with apache server but not with mysql. I have enabled extension=php_mysql.dll and extension=php_mysqli.dll in php.ini and restarted my pc.I have tried adding libmysql.dll and php_mysql.dll to system32.But mysql is not displayed in phpinfo().
My phpinfo() is as follows http://192.168.1.104/test.php
Also i tried with the following php code
$continued = mysql_connect("localhost","sonetonix","sonetonix");
if($continued) {
echo("Connection is succeed");
} else {
echo("Connection is fail");
}
when i run the code i am getting error as Call to undefined function mysql_connect().
How can i make php and mysql work.
mysql_*functions, they are officially deprecated, no longer maintained and will be removed in the future. You should update your code with PDO or MySQLi to ensure the functionality of your project in the future. - Ben