Here’s what I did to fix this problem on my machine (Win XP, Apache 2, PHP5, MySQL 5)
edit php.ini
1. remove “;” from “;extension=php_mysql.dll”
so it becomes:
extension=php_mysql.dll
2. change extension_dir = “./” to point to the location of the php_mysql.dll file. In my case it was c:\php\ext
so it becomes:
extension_dir = “c:\php\ext”
HTH