Do you have the correct PHP folder? Usually C:\PHP\
Within this or the extensions folder you need to have php_mysql.dll
Then go to control panel > system > Advanced > Environment variables
under the path variable add
;C:\PHP\
to the end of the other paths. ok these settings then reboot and see if that fixes it.