rac_skelly
asked on
No Database Selected error PHP/MySQL
When my page first loads it occassionally responds with error "No Database Selected"
if i click refresh several times, the page will load normally.
if i click refresh several times, the page will load normally.
Gonna be very hard to help you if you don't post some code.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
it sounds like you are missing or not executing
mysql_select_db("dbname");
before executing your queries. post your code.
mysql_select_db("dbname");
before executing your queries. post your code.
since it does work occasionally, is your database server locking up? Can it handle the traffic? Is the server itself flaky? Is your database being locked? Corrupted?
ASKER
Thanks we figured out.... we had mislabeled our connection scripts!