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" <[EMAIL PROTECTED]>
To: "PHP-DB" <[EMAIL PROTECTED]>
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
> 
> 
> 



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to