From: Aarmel <pgadmin@animated.net.au>
To: pgsql-php@postgresql.org
Subject: I give up.
Date: Tue, 12 Dec 2000 16:12:08 +1100
Message-ID: <3A35B3A8.3040503@animated.net.au> (raw)
I have a db wrapper. Ok here is code and explanation :
Now the thing is the CONTENT part that I'm trying to print is text.
Oh and note in both version all ALL, other fields have the correct
vaules in them.
ok. The slab of text contains about a paragraph and in side the
pragraph is the following text ->
www:1{register}.
Now when I print out the array (from pg_fetch_row). I get with the non
working code just the string "Register".
but with the working code i get the whole paragraph. about 50 words or so.
ALSO. if I put the working code inside the dbwrapper. e.g
$recordset->getRow().
Inside the getRow() function I tried :
$f = pg_fetch_array($this->resultset,0);
echo "<BR>INSIDEID:".$f[0]."<BR>";
echo "<BR>INSIDEC:".$f[5]."<BR>";
and it still printed "Register" not "Welcome blah blah blah blah
www:1{register} balh blah blah"
// THIS DONT WORK.------------------------------------------------------
$b = new dbObj;
$b->init("");
$morebs = new recordset;
$morebs = $b->exec($query);
$b->free();
$bsarray = $morebs->getRow();
echo "<BR>MYBSARRAYid:".$bsarray[0];
echo "<BR>MYBSARRAYCONTENT:".$bsarray[5];
$morebs->free();
//====================================================================
//THIS DO WORK
$datab = pg_connect("host=localhost user=sbe password='' port=5432
dbname=nexgen");
$result = pg_exec($datab, $query);
pg_close($datab);
$thearray = pg_fetch_array($result,0);
echo "<BR><BR>WORKFYA :".$thearray[0];
echo "<BR><BR>WORKFYA :".$thearray[5];
//==============================================================
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: pgadmin@animated.net.au
Subject: Re: I give up.
In-Reply-To: <3A35B3A8.3040503@animated.net.au>
References: <3A35B3A8.3040503@animated.net.au>
* 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