Jump to content

select database error


PC Nerd

Recommended Posts

hi guys,

 

i cant seem to find the error in this code:

$db = mysql_connect($dbHost, $dbUsername, $dbPassword) or die("connection failed");
$db_select = mysql_select_db($databasename, $db) or die("no selection");

 

i have checked the variables above.  if there was no such database, would it return an error such as "no database in MySQL"?

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/53546-select-database-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.