Re: How to turn off error display
| From: | cal at calevans dot com | Date: | Tue, 16 Apr 2002 12:30:21 +0000 |
| Subject: | Re: How to turn off error display | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-18540@lists.php.net to get a copy of this message | ||
I believe what you are looking for is:
@pg_fetch_row( $result, $i++ )
But check the manual for @.
=C=
*
* Cal Evans
* Techno-Mage
* http://www.calevans.com
*
----- Original Message -----
From: "bob parker" <bobparker@picknowl.com.au>
To: "PHP-DB" <php-db@lists.php.net>
Sent: Tuesday, April 16, 2002 7:29 AM
Subject: [PHP-DB] How to turn off error display
> In the code shown below, everything works ok but php
> displays an error message when pg_fetch_row tries to
> access beyond the last row. How can I turn the error display
> off?
>
> // exec query
> $result = pg_exec($dbcon, $sql);
> $i = 0;
> while (($row = pg_fetch_row( $result, $i++ ))) {
> // display what we have
> // printf/echo stuff
> }
> pg_close( $dbcon );
>
> Thanks
> Bob Parker
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>