Jump to content

Archived

This topic is now archived and is closed to further replies.

bentleyboy

Using include db.php - newbie

Recommended Posts

I\'ve set up Mysql and have gone through PHPfreaks tutorial for setting up a memnership login.

 

I have called my database \"registration\" with a single table called users.

 

The first HTML form \"join.html\" posts values to register.php. When I complete the form I get back:

\"No Database Selected\"

 

I know it is a simple case of the rogith path or name not being used, but I simply cannot find it!

 

ANy help greatfully recieved!

Share this post


Link to post
Share on other sites

u have to use

 

 

$db = mysql_connect("localhost", "admin","admin");

mysql_select_db("test",$db);

 

were \"test\" is my datbase name.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.