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

28 Jul 2005, 10: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

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.

01 Jan 2006, 11:37 AM
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


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