ded Posted January 23, 2012 Share Posted January 23, 2012 Not sure why this is happening? Showing No database selected The database does exist $dbh=mysql_connect ("localhost", "website_dbname", "password") or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ("website_newdatabase"); $query = "SELECT * FROM `contacts` ORDER BY `rrn`"; $result = mysql_query($query,$dbh) or die(mysql_error()); Quote Link to comment https://forums.phpfreaks.com/topic/255601-no-database-selected/ Share on other sites More sharing options...
ded Posted January 23, 2012 Author Share Posted January 23, 2012 Never mind......ID TEN T problem. Quote Link to comment https://forums.phpfreaks.com/topic/255601-no-database-selected/#findComment-1310350 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.