From: | Aarmel <pgadmin(at)animated(dot)net(dot)au> |
---|---|
To: | pgsql-php(at)postgresql(dot)org |
Subject: | I give up. |
Date: | 2000-12-12 05:12:08 |
Message-ID: | 3A35B3A8.3040503@animated.net.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
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];
//==============================================================
From | Date | Subject | |
---|---|---|---|
Next Message | Alexey Borzov | 2000-12-13 08:06:07 | Re[2]: pg_pconnect - Really persistent ? |
Previous Message | Adam Lang | 2000-12-11 13:57:33 | Re: How to verify PHP has PostgreSQL support? |