On Wed, 15 Oct 2003 08:43:07 -0700 Dennis Gearon <gearond(at)fireserve(dot)net> wrote:
> >$count = pg_numrows( $result);
> >for( $i = 0; $i < $count; $i++){
...
> in case of no rows, maybe do:
>
> $count = pg_numrows( $result);
> while ( 0 < $result ){
...
shouldn't make a difference; in php, the condition on a for() should be at
the top of the loop anyway.
richard
--
Richard Welty rwelty(at)averillpark(dot)net
Averill Park Networking 518-573-7592
Java, PHP, PostgreSQL, Unix, Linux, IP Network Engineering, Security