Re: [PHP4BETA] OCIFetchInto bug

From: Date: Tue, 30 May 2000 09:19:33 +0000
Subject: Re: [PHP4BETA] OCIFetchInto bug
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-15928@lists.php.net to get a copy of this message
On Tue, May 30, 2000 at 11:19:44AM +0300, Vadim Tkachenko wrote: > Two scripts > > First: > <? > echo "START\n"; > $c1 = OCIPLogon("...","..."); > echo OCIServerVersion($c1)."\n"; > > $stmt=OCIParse($c1,"SELECT DESCR,MANU_PART FROM VVTK.PRODUCTS WHERE DESCR > LIKE '%NETF%'"); > > OCIExecute($stmt); > OCIFetchInto($res,OCI_ASSOC); OCIFetchInto($stmt,$res,OCI_ASSOC); would be correct (& work) tc > echo $res["DESCR"]." ".$res["MANU_PART"]; > > > OCILogOff($c1); > ?> > When I run this script - in result empty page (without "START") > > > <? > echo "START<BR>\n"; > $c1 = OCIPLogon("...","..."); > echo OCIServerVersion($c1)."\n"; > > $stmt=OCIParse($c1,"SELECT DESCR,MANU_PART FROM VVTK.PRODUCTS WHERE DESCR > LIKE '%NETF%'"); > > OCIExecute($stmt); > > OCILogOff($c1); > ?> > When I run this script - in result > > START > Oracle8 Enterprise Edition Release 8.0.5.1.0 - Production > With the Partitioning and Objects options > PL/SQL Release 8.0.5.1.0 - Production > > This two scripts have small difference - one line with OCIFetchInto... > > > Vadim Tkachenko. > > > > > > > > > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > For additional commands, e-mail: php4beta-help@lists.php.net > To contact the list administrators, e-mail: php4beta-admin@lists.php.net -- Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.version4 (#15928) next »