Re: Example in PHP manual
| From: | Egon Schmid | Date: | Thu, 15 Jun 2000 18:08:38 +0000 |
| Subject: | Re: Example in PHP manual | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-946@lists.php.net to get a copy of this message | ||
Rasmus Kaj wrote:
>
> 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.
I have it now corrected in CVS. It should appear at
http://snaps.php.net/manual very soon. It seems that the
manual at
www.php.net isn't updated every day.
Thank you for pointing this out.
-Egon
--
SIX Offene Systeme GmbH · Stuttgart - Berlin - New York
Sielminger Straße 63 · D-70771 Leinfelden-Echterdingen
Fon +49 711 9909164 · Fax +49 711 9909199 http://www.six.de
PHP-Stand auf Europas grösster Linux-Messe: 'LinuxTag 2000'
weitere Infos @ http://www.dynamic-webpages.de/