Re: [PHP4BETA] problem about OCINewDescriptor()

From: Date: Tue, 21 Sep 1999 16:07:52 +0000
Subject: Re: [PHP4BETA] problem about OCINewDescriptor()
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-4753@lists.php.net to get a copy of this message
is fixed in CVS! either learn how to use the CVS version or wait for beta3 (out soon!) tc On Wed, 21 Jul 1999, Kim, Sung-Sik wrote: > This script works good in (php3.0.12 + redhat6 + oracle8.0.5) > but doesn't in (php4.0b2 + redhat6 + oracle8.0.5) > > i get following error message. > ------------------------------------------------------------------- > OCIDebug: oci8_open_server new conn=2000 dname= > OCIDebug: oci8_open_user new sess=1000 user=scott > OCIDebug: oci8_do_connect: id=1 > OCIDebug: oci8_parse "select rowid from emp" id=2 conn=1 > OCIDebug: OCINewDescriptor: new descriptor for 0 -> 81c78c0 > > Warning: add_assoc_function() is no longer supported in /home/php/public_html/PHP/test.php on > line 6 > > Warning: add_assoc_function() is no longer supported in /home/php/public_html/PHP/test.php on > line 6 > > ------------------------------------------------------------------- > > <?php > > ociinternaldebug(1); > $conn = OCILogon("scott", "tiger"); > $stmt = OCIParse($conn,"select rowid from emp"); > $rowid = OCINewDescriptor($conn,OCI_D_ROWID); // LINE 6 !!!!!!!!!!!!!!!!!!!!!!!!!! > > OCIDefineByName($stmt,"ROWID",&$rowid); > > OCIExecute($stmt); > > while ( OCIFetch($stmt) ) { > $nrows = OCIRowCount($stmt); > $del = OCIParse($conn,"delete from emp where ROWID = :rid"); > OCIBindByName($del,":rid",&$rowid,-1,OCI_B_ROWID); > OCIExecute($del); > print "$nrows<BR>"; > } > > $nrows = OCIRowCount($stmt); > print "$nrows deleted...\n"; > OCIFreeStatement($stmt); > OCILogoff($conn); > > ?> > > > > -- > PHP 4 Beta > > 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 (#4753) next »