Hi Nicolas,

@ 5:26:44 PM on 11/19/2001, Nicolas Llamosas wrote:

NL> line 21        $link = mysql_connect ("localhost", "my_user", "my_pass") {
NL> or die ("Could not connect");
NL> }
NL> print ("Connected successfully");
NL> mysql_close ($link);

You want:

$link = mysql_connect ("localhost", "my_user", "my_pass") or die ("Could not connect");
print ("Connected successfully");
mysql_close ($link);

(Lose the curly braces)

--
 -Brian Clark | PGP is spoken here: 0xE4D0C7C8
  Please, DO NOT carbon copy me on list replies.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to