RE: Fatal error: Call to unsupported or undefined function mysql_connect() in ....

Possible Solution for mysql_connect() Error

I had this problem and the solution for me was to modify the php3.ini file. My configuration is for a test machine running Win98, PWS, PHP3, and MySQL. I don't know if this changes the solution but here it goes:

Under Section:
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
extension_dir="php3" ; directory in which the loadable extensions (modules) reside

My .ini files is located in my windows directory so I changed the location of the extension directory and it worked. The default was to ./ and this puts PHP looking in Windows directory.

I hope this helps ...

Thanks,

Scott



------------------
-----------------------
Scott B. Pier
ScottBP@amalla.com