1. All spelling is correct.
2. The database does indeed exist.
What, then, could possibly be wrong with this code:
Code: Select all
if (!($connection = mysql_connect($hostname, $username, $password)))
{
die("Cannot connect to Dannyprose Database.");
} else {
//Select Dannyprose Database
echo "Connection Complete" . "<br>";
if (!(mysql_select_db("ansdannyprosecom")));
{
echo "<b>" . "Failure to connect to DANNYPROSECOM." . "</b>";
}Thank you very much for any help and advice.
| dp |