So I switched over to PHP5 and it worked for a while, but after I restarted my server it dies right at the first mysql_connect statement with no explanation. I have the extension=php_mysql.dll line in my configuration file so I have not a clue as to the problem.
My second problem is that after the first problem I decided to switch back to PHP4 for the time being, so I changed the AddModule and LoadModule lines back and whatnot, and it gave me this error:
Unknown(): (null): Unable to Initialize Module
Module compiled with module API=20060613 debug=0 thread-safety=1
PHP compiled with module API=20020429 debug=0 thread-safety=1
These options need to match.