pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Cornelia Boenigk <poppcorn@cornelia-boenigk.de>
To: Alxander A. Kapralov <sasha@province.ru>
To: pgsql-php@postgresql.org
Subject: Re: help !!!
Date: Mon, 17 Jun 2002 20:18:01 +0200
Message-ID: <004201c2162b$a378c140$7f54fea9@zwerg98> (raw)
References: <3D0DB73A.2050108@province.ru>

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




view thread (16+ messages)  latest in thread

Message-ID: <004201c2162b$a378c140$7f54fea9@zwerg98>
Permalink:  ../004201c2162b$a378c140$7f54fea9@zwerg98/
Also on:    postgresql.org/message-id/004201c2162b$a378c140$7f54fea9@zwerg98

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: poppcorn@cornelia-boenigk.de, sasha@province.ru
  Subject: Re: help !!!
  In-Reply-To: <004201c2162b$a378c140$7f54fea9@zwerg98>
  References: <3D0DB73A.2050108@province.ru> <004201c2162b$a378c140$7f54fea9@zwerg98>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox