I am trying to connect to mysql and am using the following function unsuccessfully:
<?php
mysql_connect("localhost", "dave", "skater") or die(mysql_error());
echo "Connected to MySQL<br />";
?>
I have placed the file that contains this function in my "htdocs" folder and invoke the function with http://localhost/mysqlconnect.php. I get the dreaded "Error 404 File not found" error message.
Everthing runs fine using any other php file.
Thanks