You will have to recompile php using the –with-mysql flag.
Check the php documentation for more details.
First of all, create a test PHP page that has the following code:
Open this and see if mysql is listed somewhere.
If it is, then php and mysql are working. You just need to connect to the database.
If it isn’t, then you need to edit the php.ini file. Go the the bottom of the file and add the line
extension=php_mysql.dll
Then restart apache.
If that doesn’t work, I would install PHP again from scratch following the tutorial on