elis Posted November 2, 2006 Share Posted November 2, 2006 I'm not sure what the problems, but I switched hosts recently, but I kept the exact same coding to my site - but for some reason I'm now receiving "No database selected" as an error. [code]<?php $dbhost = 'localhost';$dbuser = 'myusername';$dbpass = 'mypassword';$dbname = 'mydatabasename';$mysql_access = mysql_connect($dbhost, $dbuser, $dbpass);mysql_select_db($dbname, $mysql_access);?>[/code]Does anyone see why I'm getting this error? Link to comment https://forums.phpfreaks.com/topic/25879-no-database-selected/ Share on other sites More sharing options...
elis Posted November 2, 2006 Author Share Posted November 2, 2006 Nevermind. After some tinkering, I've solved it. I forgot to set permissions. Link to comment https://forums.phpfreaks.com/topic/25879-no-database-selected/#findComment-118221 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.