Copy link to clipboard
Copied
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:
Thanks,
Kevin
Copy link to clipboard
Copied
Have you included the db connection?. Could you post your code?
Copy link to clipboard
Copied
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...
Copy link to clipboard
Copied
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