Page 2 of 2

Posted: Thu Aug 01, 2002 5:45 pm
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")

Posted: Thu Aug 01, 2002 5:57 pm
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.

Posted: Thu Aug 01, 2002 6:10 pm
by Dale
Yes it works!!!1111


Thanks llimllib :)

Posted: Thu Aug 01, 2002 6:12 pm
by llimllib
no prob, just keep reading the manuals and trying stuff out. Peace

Posted: Thu Aug 01, 2002 6:14 pm
by Dale
well now i know how to connect to a database ;)

So thats 1 problem out of my head :)