2 other things, have you granted read and execute access to the php directory to the 2 iis user accounts along with write and modify access to the session and upload directory within the php folder? And finally does the output of phpinfo have a section detailing the mysql connection dll and the default variables?
You could also try creating a simple php script containing a command to connect to the database and see what happens?
Arthur arthur@assys.net