No Database Selected – PHP & MySQL

I had that problem and solved it with prefixing the table name with the database name, so

 select * from database.table

Leave a Comment