Link to home
Start Free TrialLog in
Avatar of rac_skelly
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.

Avatar of Cornelia Yoder
Cornelia Yoder
Flag of United States of America image

Gonna be very hard to help you if you don't post some code.
ASKER CERTIFIED SOLUTION
Avatar of nplib
nplib
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hielo
it sounds like you are missing or not executing
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?
Avatar of rac_skelly
rac_skelly

ASKER

Thanks we figured out....   we had mislabeled our connection scripts!