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: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); ?>
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:mysql_select_db($database_diehl, $diehl);


LinkBack URL
About LinkBacks
Reply With Quote
