You'd think I've never written a prog. before...
Posted: Thu Jun 03, 2004 9:20 pm
I can't seem to figure out what is getting fouled up here. Assume the following:
1. All spelling is correct.
2. The database does indeed exist.
What, then, could possibly be wrong with this code:
I'm getting a successful connect to the server, but not to the database. Now, maybe I am just missing something stupid, but this seems correct to me.
Thank you very much for any help and advice.
| dp |
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 |