tmv105
New Member
- Messages
- 4
- Reaction score
- 0
- Points
- 0
I keep getting the error that "No database selected". I have a "Connections" file that contains this:
....and then my PHP page using these variables has this code:
And a page that is all but blank with the error "No database selected" appears. I have tried hard coding the database information into the statement and still no luck. Please help!
Code:
<?php
$hostname_diehl = "localhost";
$database_diehl = "tmv105_*****";
$username_diehl = "tmv105_*****l";
$password_diehl = "********";
$diehl = mysql_connect($hostname_diehl, $username_diehl, $password_diehl) or trigger_error(mysql_error(),E_USER_ERROR);
?>
Code:
mysql_select_db($database_diehl, $diehl);
Last edited: