Example in PHP manual

From: Date: Thu, 15 Jun 2000 15:22:31 +0000
Subject: Example in PHP manual
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-940@lists.php.net to get a copy of this message
On http://www.php.net/manual/function.mysql-connect.php, there is an example which seems bogus: <?php $link = mysql_connect ("kraemer", "marliesle", "secret") { or die ("Could not connect"); } print ("Connected successfully"); mysql_close ($link); ?> I think it should read: <?php $link = mysql_connect ("kraemer", "marliesle", "secret") or die ("Could not connect"); print ("Connected successfully"); mysql_close ($link); ?> I.e. without a block around the or die statment. -- Rasmus Kaj -------------------- rasmus@kaj.se - http://Raditex.se/~kaj/ \ Talk sense to a fool and he calls you foolish. -Euripides \------------------------------------------------- http://Raditex.se/

« previous php.mirrors (#940) next »