pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alxander A. Kapralov <sasha@province.ru>
To: pgsql-php@postgresql.org
Subject: help !!!
Date: Mon, 17 Jun 2002 14:17:30 +0400
Message-ID: <3D0DB73A.2050108@province.ru> (raw)

 function PaperList () {
        global $db;
        $str = "select gazeta.id as i,gorod.id as ig,trim(gazeta.name,' 
') as gaz_n, trim(gorod.name,' ') as gor_n from gazeta,gorod where 
gazeta.id_gorod=gorod.id order by gazeta.name asc;";
        $result = pg_Exec( $db, $str );
        if ($result = pg_Exec( $db, $str ) != false && ($num = 
pg_numrows($result)) ) {
            for ($i = 0; $i < $num; $i++) {
                $r = pg_fetch_object($result, $i);
                    ^^^^^   -- here get error message
                echo "<OPTION VALUE=$r->i> $r->gor_n / $r->gaze_n\n";
            };
        };
    };

Supplied argument is not a valid PostgreSQL result resource in ib.inc
Can any one explain that  !!!!





view thread (16+ messages)  latest in thread

Message-ID: <3D0DB73A.2050108@province.ru>
Permalink:  ../3D0DB73A.2050108@province.ru/
Also on:    postgresql.org/message-id/3D0DB73A.2050108@province.ru

 · 

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: sasha@province.ru
  Subject: Re: help !!!
  In-Reply-To: <3D0DB73A.2050108@province.ru>
  References: <3D0DB73A.2050108@province.ru>

* 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