Ok, first thing would be to take a look at your phpinfo. Try creating a .php file with the following inside of it:

PHP Code
phpinfo(); 

Bring the file up in your web browser and see if there is anything related to mysql in the configuration. If php has been compiled with mysql support you should at least see a --with-mysql.