Install Something To Database

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 »

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")
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

Post by llimllib »

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 »

Yes it works!!!1111


Thanks llimllib :)
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

Post by llimllib »

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 »

well now i know how to connect to a database ;)

So thats 1 problem out of my head :)
Post Reply