php not loading mysql module?

Associate
Joined
29 Mar 2004
Posts
593
Location
Cambs, UK
Hi folks,

Ive installed apache, php, mysql and phpmyadmin but for some reason, php isnt loading the mysql module. When i go to a page that has anything re mysql on it, it errors

"Fatal error: Call to undefined function mysql_connect() in C:\www\root.php on line 9"

that line at me.

Also, when i go to use phpmyadmin, it says

"Cannot load MySQL extension,
please check PHP Configuration."

So obviously it is a mysql issue. Im sure i have installed it correctly, when installing it i set it to the default installation process. Im sure that mysql has installed correctly as i can use the WinMysqlAdmin tool/program to look at any databases i have.

My php stuff is in c:/php and i have the extensions folder correctly addressed in php.ini in the windows directory (i presume that means c:\windows?). I have also taken away the comment stopping it from loading that module.

So i have NO idea why it isnt working.

Does anyone know, or have an incling?

Thanks in advance,

Edward
 
Which version of PHP are you using? I know that the latest version (5.x.x) doesn't come with the the MySQL extensions installed.

I'm using V4.x.x (Not sure which exactly) and that come WITH the MySQL support installed.
 
You could try using XAMPP, which is an all-in-one Apache, PHP, MySQL and phpMyAdmin installation with minimal fuss. Just install and you're good to go, no need to configure anything. :)
 
Back
Top Bottom