On Wed, 15 Oct 2003 08:43:07 -0700 Dennis Gearon <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] Averill Park Networking 518-573-7592 Java, PHP, PostgreSQL, Unix, Linux, IP Network Engineering, Security ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html