Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

No Database Selected error

New Here ,
Jun 05, 2010 Jun 05, 2010

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

TOPICS
Server side applications
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 05, 2010 Jun 05, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 08, 2010 Jun 08, 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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 09, 2010 Jun 09, 2010
LATEST

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines