or die

From: Date: Sat, 04 May 2002 16:33:28 +0000
Subject: or die
Groups: php.windows 
Request: Send a blank email to php-windows+get-13534@lists.php.net to get a copy of this message
hi a have this code $link = mysql_pconnect ("localhost", "sa", "sa") { or die ("Could not connect"); } and i receive Parse error: parse error in c:\htdocs\otra.php on line 2 and rewrite the code like this if (!$link = mysql_pconnect ("localhost", "sa", "sa")) { echo "Could not connect"; } and work what's wrong??? regards RAM

« previous php.windows (#13534) next »