PDA

View Full Version : Fatal error: Call to undefined function mysql_connect()



sofaspud
28 Jul 2005, 11:57 AM
I've been having trouble installing MySQL with PHP. PHP can't seem to find the MySQL library. Here's the specs:

Windows XP Home
Apache 2.0
PHP 5

I know php works because phpinfo(); works on my machine. I un-commented "extension=php_mysql.dll" in the php.ini file. I don't know why it doesn't work.

any help would be appreciated.

DanInManchester
01 Jan 2006, 12:37 PM
Do you have the correct PHP folder? Usually C:\PHP\

Within this or the extensions folder you need to have php_mysql.dll

Then go to control panel > system > Advanced > Environment variables

under the path variable add

;C:\PHP\

to the end of the other paths. ok these settings then reboot and see if that fixes it.