I am running Windows XP with IIS and downloaded and installed both PHP 5 and MySQL 5. I get the following error:
Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\hostingcomp.php on line 10
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\morephp\php_mysql.dll' - The specified procedure could not be found. in Unknown on line 0
php_mysql.dll is in that directory
Any help would be greatly appreciated as I am fairly new to PHP and MySQL.
Check your php.ini file, and ensure that the extension php_mysqli.dll is uncommented. You may also want to uncomment the php_mysql.dll file, although, as feyd says, mysql 5+ makes use of the mysqli library.
Edit:
if you display the phpinfo() page, you can see which modules are loaded - check to see whether the mysql libraries are loaded.
I had the same problem which i never got resolved .. there was no mysqli extension in my php.ini file so i added it in uncommented as well as having the regular mysql extenstion uncommented but still did not fix the problem.
I forgot to add this in my previous post and this may be silly but i've learned never to ignore the obvious and most silly when it comes to anything computer related, even when it seems way out of range ..... Is it possible that a firewall could be blocking the connection to MySQL?