Page 1 of 1

No database selected error

Posted: Fri Apr 07, 2006 3:17 pm
by Benjamin
Anyone know what would cause a periodic database not selected error? It's a simple script that simply connects to the database to retrieve some results. Not a conditional issue or anything like that. Database name is hardcoded in the script.

Posted: Sat Apr 08, 2006 5:06 am
by raghavan20
can you show your code???

Most of the times, when you open up a new connection and try to execute the statements without mysqi(i)_select_db, it should return that error. If you are using OO, make sure the db opening up calls are happening properly.