[thelist] RE: SQLSession to PostgreSQL

Andrew McKiernan andrew at kephra.com.au
Sat Mar 16 00:04:01 CST 2002


> On Sat, 2002-03-16 at 18:41, Andrew McKiernan 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++;
> }

Well, that seems to have worked!! No more error and no more infinite
loop. I'll just have to turn all the other functions back on now and
see if they are working :)

Cheers,
Andrew
KEPHRA DESIGN
www.kephra.com.au

PO Box 31
Toongabbie
NSW 2146
AUSTRALIA

mailto:design at kephra.com.au




More information about the thelist mailing list