Jump to content


Photo

Using include db.php - newbie


  • Please log in to reply
1 reply to this topic

#1 bentleyboy

bentleyboy
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 12 March 2003 - 10:21 PM

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!

#2 shivabharat

shivabharat
  • Members
  • PipPipPip
  • Advanced Member
  • 371 posts
  • LocationChennai, India

Posted 13 March 2003 - 12:05 AM

u have to use


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

mysql_select_db("test",$db);

were \"test\" is my datbase name.
Knowledge --- Reading Enriches Mind But Sharing Enhances It.[br][br]Note: Before you request help enusre that you have had a look at the tutorials @phpfreaks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users