close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

message No database selected

Thread began 2/23/2010 3:32 pm by donald.dickson338135 | Last modified 2/24/2010 8:02 am by donald.dickson338135 | 9276 views | 7 replies


message No database selected

Hello I need some basic help here because I cannot work out what I am doing wrong.
I am slowly working through this Solution Pack and my current challenge is overcoming the "No database selected" message.
I am runing XAMP with Apache and MySQL as a local host on Windows Vista with IIS turned off. I use Dreamweaver CS3
Page results as follows
The above page loads OK

This page displays the message No database selected

This page displays the message No database selected

The MySQL Connection test passes OK so I do not understand why there is no database connection

I looked at these support pages and spotted a similar issue except that my localhost php file content has one less line.
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_localhost = "localhost";
$database_localhost = "users.sql";
$username_localhost = "root";
$password_localhost = "dicksdo1025";
$localhost = mysql_pconnect($hostname_localhost, $username_localhost, $password_localhost) or trigger_error(mysql_error(),E_USER_ERROR);

I have tried changing line 6 by removing .sql from users.sql and saving the file but next time I open the file in notepad the .sql is back!

Clearly I have not completed one of the pages in the Solution pack correctly but which ones and what needs to be changed?

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...