[thelist] RE: SQLSession to PostgreSQL

Andrew Forsberg andrew at thepander.co.nz
Fri Mar 15 23:53:01 CST 2002


On Sat, 2002-03-16 at 18:41, Treasurer, OTO Australia wrote:
> Hi Andrew,
>
> Thanks for your help. I'm still confused though.

Me too! PHP's postgresql functions behave in totally different ways to
the mysql functions... sigh. :) The docs suggest that's all about to
change sometime soon, signs of the coming storm, and all that.

What happens if you replace the while ($row... stuff with:

while ($c < pg_numrows($this->queryresult)) {
    $res[$c] = pg_fetch_array($this->queryresult,$c);
    $c++;
}

Cheers
Andrew





More information about the thelist mailing list