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? Quote Link to comment 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. Quote Link to comment 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.