RE: [PHP-DB] oracle8

From: Date: Mon, 04 Dec 2000 13:27:18 +0000
Subject: RE: [PHP-DB] oracle8
Groups: php.db 
Request: Send a blank email to php-db+get-5002@lists.php.net to get a copy of this message
not that I've found (or our oracle dba) -----Original Message----- From: Dave Fudge [mailto:fudge@hostopia.com] Sent: Saturday, December 02, 2000 02:38 To: php-db@lists.php.net Subject: RE: [PHP-DB] oracle8 ammendment, is there a way to get both OCIFetchSTatement and OCIFetchInto without using OCIExecute() twice? -----Original Message----- From: Dave Fudge [mailto:fudge@hostopia.com] Sent: Friday, December 01, 2000 9:03 PM To: php-db@lists.php.net Subject: RE: [PHP-DB] oracle8 part 2: is there an easier way than using $i=0 while (OCIFetchInto($sth,&$row,OCI_ASSOC+OCI_RETURN_NULLS+OCI_RETURN_LOBS)) { $i = $i+1; } to find the number of rows affected by a select? apparently OCIRowCount won't work. -----Original Message----- From: indrek siitan [mailto:tfr@cafe.ee] Sent: Friday, December 01, 2000 6:14 PM To: Dave Fudge; php-db@lists.php.net Subject: RE: [PHP-DB] oracle8 Hi, a very simple example: <? $query="SELECT col1,col2 FROM table ORDER BY col1"; $sth=OCIParse($GLOBALS["DBH"],$query); OCIExecute($sth); while (OCIFetchInto($sth,&$row,OCI_ASSOC+OCI_RETURN_NULLS+OCI_RETURN_LOBS)) { ?> <TR> <TD><?= $row["COL1"] ?></TD> <TD><?= $row["COL2"] ?></TD> </TR> <? } OCIFreeStatement($sth); ?> NOTE: the column names in $row MUST BE uppercase. hope that helps. Rgds, Tfr --==< tfr@cafe.ee >==< http://tfr.cafe.ee/ >==< +372-50-17621 >==-- -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#5002) next »