if you do a mysql_select_db and you get the 1046 … it could be that the user has no access rights to that database… the error message is missleading!

admin