I have the php file on the server and I’m just trying to hit the file in IE.
I made the database earlier and I have connected through the web based phpadmin. I’ve checked over the user, password and added your advice to the hostname. I’m kinda stumped now…
I got this code and it looks reasonable…I have a require statement which holds these variables.
// Opens a connection to a mySQL server
$connection=mysql_connect ($hostname, $username, $password);
if (!$connection) {
die('Not connected : ’ . mysql_error());
}
// Set the active mySQL database
$db_selected = mysql_select_db($database, $connection);
if (!$db_selected) {
die ('Can’t use db : ’ . mysql_error());
}