PHP won't parse MySQL statements

Posted by Hussain on Stack Overflow See other posts from Stack Overflow or by Hussain
Published on 2010-03-14T10:46:52Z Indexed on 2010/03/14 10:55 UTC
Read the original article Hit count: 287

Filed under:
|
|
|
|

I just installed Apache 2.2.15/PHP 5.3.2/MySQL 5.1.44 on Windows Vista. Apache is working fine, PHP is functional, and MySQL works on the CLI. However, when I try to access MySQL via PHP, I get an error (Fatal error: Call to undefined function mysql_connect()). extension=php_mysql.dll and extension=php_mbstring.dll are uncommented in the php.ini file, and PHP is in the system path. There is no libmysql.dll in either the top level PHP directory or the ext directory. There's a libmySQL.dll file in the MySQL bin directory (which is also in the system path); I tried renaming it, but that doesn't do anything

Also, in case anyone wants to know, I originally installed PHP using the MSI installer, but it was missing some DLLs, so I installed from the zip file.

I think I've exhausted all my options. Any help on this problem would be very appreciated.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql