Skip site navigation (1) Skip section navigation (2)

I give up.

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: (view raw, whole thread or download thread mbox)
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 ->

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 
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;

   $morebs = new recordset;
   $morebs = $b->exec($query);
   $bsarray = $morebs->getRow();
   echo "<BR>MYBSARRAYid:".$bsarray[0];
   echo "<BR>MYBSARRAYCONTENT:".$bsarray[5];

   $datab = pg_connect("host=localhost user=sbe password='' port=5432 
   $result = pg_exec($datab, $query);
   $thearray = pg_fetch_array($result,0);
   echo "<BR><BR>WORKFYA :".$thearray[0];
   echo "<BR><BR>WORKFYA :".$thearray[5];


pgsql-php by date

Next:From: Alexey BorzovDate: 2000-12-13 08:06:07
Subject: Re[2]: pg_pconnect - Really persistent ?
Previous:From: Adam LangDate: 2000-12-11 13:57:33
Subject: Re: How to verify PHP has PostgreSQL support?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group