[thelist] SQLSession to PostgreSQL

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

On Sat, 2002-03-16 at 17:33, Andrew McKiernan wrote:

> 109        while ($row = pg_fetch_array($this->queryresult,0))

Doh! Sorry, jumped the gun, the show stopper might be the 0 rather than
$c in the loop (didn't notice it, as I've not worked with postgresql,
and didn't realize they require a row counter for their array fetching

109	while ($row = pg_fetch_array($this->queryresult, $c)) {

But I can't see why 0 wouldn't work at all. Perhaps it's getting caught
in an infinite loop? Always processing the same row (i.e. row 0)?

One last thought, have you checked queryresult is the correct variable


More information about the thelist mailing list