Well, in your php.ini file did you enable (uncomment, remove the ";" from the beginning of the line) the extension?
;extension=php_mysql.dll
becomes
extension=php_mysql.dll
Did you do that? If yes, then make sure mySQL is actually running. To make sure it's running, try going to the mySQL Command Prompt (Start-->Programs-->mySQL-->mySQL Command Client) and connecting. If it's not running, you'll need to start it. Just run the reconfigure wizard (in same area as mySQL Command Client on Start menu) and check "Start AS Service". Reboot.
Now, if it is running, then check your php installation by creating a small php file and in it just put this:
<?php
echo phpinfo();
?>
Scroll down and look for mySQL. If you see it, you're good to go. If you don't see it, then PHP isn't set up properly for mySQL. It's time to look in the logs and see if PHP is reporting any errors.
Looking for Errors
Your PHP and Apache logs will be very helpful here. Your Apache logs will tell you if PHP failed to load the required extension(s) for mySQL (really only the mySQL extension is required). Look in there and see if you get errors. If you do, then you need to just start a trial and error process.
Open up the following files:
php.ini
error.log (Apache Error Log: C:\Program Files\Apache Group\Apache2\logs\error.log)
Now, look in error.log for something like
PHP Warning: PHP Startup: Unable to load dynamic library './ext/php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0
It should be towards the bottom. When the error log is written, it's appended to (up to a certain size). So the info at the bottom will be the most recent.
If you see it, it means you need to modify your php.ini. Go to that file and search for "extension_dir" (without quotes). By default it's: "./". You may need to change it to: "./ext/". See if that does it. Otherwise, continue fiddeling with it until you get all your extensions loaded. It's a long process.
If all else fails, and you can't get it to load, just try using a direct path (like I did):
extension_dir = "C:/Program Files/WebServer/php/ext/"
The other items to check are:
1.) Include_path (Mine: include_path = ".;C:\Program Files\WebServer\php\includes")
See what that does....