Partner and Community Forums
Win 8.1 IIS 8.5 PHP Error - Call to undefined function mysql_connect(...
Last post Mar 12, 2015 11:34 PM by DropPhone
Mar 12, 2015 01:27 PM|cgtrman|LINK
Windows 8.1 IIS 8.5 php 5.4.24 MySQL 5.5. I used the MS Web Platform Installer 5.0 to install php, mysql
I can go to http://localhost and view my phpInfo() page. However, when I try to go to the default login page http://localhost/xyz/default.php, I get this error: "Call to undefined function mysql_connect()"
The line in the code throwing the error looks like this:
$XYZ['db_connect'] = mysql_connect($XYZ['db_host'],$XYZ['db_user'],$XYZ['db_password']);
Any ideas are appreciated.
Mar 12, 2015 11:34 PM|DropPhone|LINK
When you go to the phpinfo page, do you see MySQL as one of the loaded modules?
is it possible that you have loaded the php_MySQL.dll driver for PHP 5.5, but you're running php 5.4?
Is there anything else in the php_errors.log file that has to do with loading the MySQL php extension?