[RESOLVED] No Database Selected
Issue here is that even after I make a persistent (or regular connection, it does the same thing) AND use mysql_select_db, it still gives me the dreaded 'No Database Selected' message.
I hope I'm just missing something and it's not a configuration issue...
Here's my connection code:
$hostname_connection1 = "localhost";
$database_connection1 = "thedb";
$username_connection1 = "user";
$password_connection1 = "pass";
$connection1 = mysql_pconnect($hostname_connection1, $username_connection1, $password_connection1) or trigger_error(mysql_error(),E_USER_ERROR);
mysql_error() may help you determine what the problem it.
mysql_select_db($database_connection1, $connection1) or trigger_error(mysql_error(),E_USER_ERROR);
Apparently, when the user in question does not have permissions to select/insert/update/delete it will throw this.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)