Re: help !!! - Mailing list pgsql-php

From Cornelia Boenigk
Subject Re: help !!!
Date
Msg-id 004201c2162b$a378c140$7f54fea9@zwerg98
Whole thread Raw
In response to help !!!  ("Alxander A. Kapralov" <sasha@province.ru>)
List pgsql-php
Hi Alxander

> $r = pg_fetch_object($result, $i);
This syntax is valid since PHP 4.2.0. Are you sure that you use no
older PHP-Version?


>         $result = pg_Exec( $db, $str );
>         if ($result = pg_Exec( $db, $str ) != false && ($num =
> pg_numrows($result)) ) {

In the second line of the code-snippet you execute pg_exec a second
time. Write instead:

        $result = pg_Exec( $db, $str );
        if ($result  && ($num = pg_numrows($result))) {

Regards
Conni


pgsql-php by date:

Previous
From: "Alxander A. Kapralov"
Date:
Subject: Re: help !!!
Next
From: "Jules Alberts"
Date:
Subject: Re: good PHP book for postgresql frontend