Re: PHP Related Problem

From: John Clark Naldoza y Lopez <njclark(at)ntsp(dot)nec(dot)co(dot)jp>
To: Nikola Milutinovic <Nikola(dot)Milutinovic(at)ev(dot)co(dot)yu>
Cc: PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: PHP Related Problem
Date: 2001-09-27 07:04:12
Message-ID: 3BB2CF6C.43136F43@ntsp.nec.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

Thanks, on a previous post I've already stated that I found the
culprit.. I think I got cross-eyed or something =)

>
> res = pg_Exec( conn, "SELECT * FROM assignment_answers" );

$res = pg_Exec( $conn, "SELECT * FROM assignment_answers" );

> if( pg_numrows( res ) != 0 ) {

if( pg_numrows( $res ) != 0 ) {

> for( i=0 ; i<pg_numrows( res ) ; ++i ) {

for( $i=0 ; $i<pg_numrows( $res ) ; ++$i ) {

> row = pg_fecharray( res, i );

$row = pg_fecharray( $res, $i );

> /* do your stuff here */
> }
> } else {
> /* report error or whatever */
> }
>
> Nix.

Cheers,

John Clark

--
/) John Clark Naldoza y Lopez (\
/ ) Software Design Engineer III ( \
_( (_ _ Web-Application Development _) )_
(((\ \> /_> Cable Modem Network Management System <_\ </ /)))
(\\\\ \_/ / NEC Telecom Software Phils., Inc. \ \_/ ////)
\ / \ /
\ _/ phone: (+63 32) 233-9142 loc. 3113 \_ /
/ / cellphone: (+63 919) 399-4742 \ \
/ / email: njclark(at)ntsp(dot)nec(dot)co(dot)jp \ \

"Intelligence is the ability to avoid doing work, yet getting the work
done"
--Linus Torvalds

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adam Fisher 2001-09-27 07:06:35 query multiple databases
Previous Message Nikola Milutinovic 2001-09-27 06:37:46 Re: PHP Related Problem