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()); 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. Link to comment https://forums.phpfreaks.com/topic/255601-no-database-selected/#findComment-1310350 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.