Skip to main content
Participating Frequently
June 5, 2010
Question

No Database Selected error

Hi,

I am trying to upload my site to the web. Everything works great except the login page. When you get to the login page, the browser window simply displays:

No database selected

The page works fine on my testing server, and I have the same names for the databases on my testing server and my host site. Any ideas for some things I could try?

You can view my site here:

www.globaldevicesolutions.com

Thanks,

Kevin

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Participant
June 8, 2010

Just take a look to your database connection, make sure you have selected dabatase name correctly... and... don't forget to check your web server features, make sure it can run your script with the web server environment, such as the include library, php version, database version, etc...

SOA Tutorial - Hello World Examples

Translate
Participant
June 9, 2010

Hi,

Many problems can be: with user rights, with your code, with firewall.

May it will help:

http://www.programva.com/en/leran-php-lessons/367-php-mysql-connection-unsuccessful-connect

Translate
June 5, 2010

Have you included the db connection?. Could you post your code?

Translate