Received: from mr14.vic-remote.bigpond.net.au (mr14.vic-remote.bigpond.net.au [24.192.1.29]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eBC5DHm26007 for ; Tue, 12 Dec 2000 00:13:18 -0500 (EST) (envelope-from pgadmin@animated.net.au) Received: from local.localdomain (CPE-144-132-17-97.vic.bigpond.net.au [144.132.17.97]) by mr14.vic-remote.bigpond.net.au (Pro-8.9.3/8.9.3) with SMTP id QAA05798 for ; Tue, 12 Dec 2000 16:13:33 +1100 (EDT) Received: (qmail 12956 invoked from network); 11 Dec 2000 17:18:31 -0000 Received: from unknown (HELO animated.net.au) (192.168.1.15) by 192.168.1.3 with SMTP; 11 Dec 2000 17:18:31 -0000 Message-ID: <3A35B3A8.3040503@animated.net.au> Date: Tue, 12 Dec 2000 16:12:08 +1100 From: Aarmel Reply-To: pgadmin@animated.net.au User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-9mdk i686; en-US; m18) Gecko/20001107 Netscape6/6.0 X-Accept-Language: en MIME-Version: 1.0 To: pgsql-php@postgresql.org Subject: I give up. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/16 X-Sequence-Number: 59 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 "
INSIDEID:".$f[0]."
"; echo "
INSIDEC:".$f[5]."
"; 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 "
MYBSARRAYid:".$bsarray[0]; echo "
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 "

WORKFYA :".$thearray[0]; echo "

WORKFYA :".$thearray[5]; //==============================================================