Bad library

I got the following error when trying to run a program that connects to a MySQL database.

PHP Warning: PHP Startup: mysql: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) ‘libmysql.d
ll’ in Unknown on line 0
PHP Fatal error: Call to undefined function mysql_connect() in C:…php on line 6

Does anyone know where I can get working libraries to connect php to MySQL? It looks like I need both libmysql.dll and php_mysql.dll. I’ve been having a lot of trouble looking for these libraries.

Also, I have no idea what it means when it says the modules are compiled on different dates.

Sponsor our Newsletter | Privacy Policy | Terms of Service