Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.
Moderator: General Moderators
Dale
Forum Contributor
Posts: 466 Joined: Fri Jun 21, 2002 5:57 pm
Location: Atherstone, Warks
Post
by Dale » Thu Aug 01, 2002 5:45 pm
Would any of these work?
Example:
bool mysql_select_db (dale)
Example 2:
bool mysql_select_db ("dale")
Example 3:
mysql_select_db (dale)
Example 4:
mysql_select_db ("dale")
llimllib
Moderator
Posts: 466 Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD
Post
by llimllib » Thu Aug 01, 2002 5:57 pm
Give me example 4! what a return value means is this. When you have:
Code: Select all
$result = mysql_select_db("dale"); then $result will be of type bool; you don't have to do anything about it. But, you should have known this from reading the manual page! it gives examples! you've got to try yourself before I answer you, otherwise it's a one-way relationship.
Dale
Forum Contributor
Posts: 466 Joined: Fri Jun 21, 2002 5:57 pm
Location: Atherstone, Warks
Post
by Dale » Thu Aug 01, 2002 6:10 pm
Yes it works!!!1111
Thanks llimllib
llimllib
Moderator
Posts: 466 Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD
Post
by llimllib » Thu Aug 01, 2002 6:12 pm
no prob, just keep reading the manuals and trying stuff out. Peace
Dale
Forum Contributor
Posts: 466 Joined: Fri Jun 21, 2002 5:57 pm
Location: Atherstone, Warks
Post
by Dale » Thu Aug 01, 2002 6:14 pm
well now i know how to connect to a database
So thats 1 problem out of my head