I am a beginner in Web design and databases.
I have saved a file written in notepad called mysql_connect which was written to test my local host connection. The fle is saved in my Xampp/htdocs directory. It reads as follows:
<?php
$db_host="localhost";
$db_username="root";
$db_db_pass="golfer99";
$db_name="racestats";
@mysql_connect("$db_host","$db_username","$db_db_pass") or die ("could not connect to my sql");
@mysql_select_db("$db_name") or die ("no database");
echo "successful connection";
?>
When I type the address into IE http://localhost/mysql_connect.php I get an "Object Not Found" error. I have also tried typing the full file path, removing the php extension and have tested successfully the connection to local host/xampp from IE. Can anyone help please ?