note 20559 added to function.ocifetchinto
| From: | pramodhrao at indiatimes dot com | Date: | Mon, 08 Apr 2002 07:46:59 +0000 |
| Subject: | note 20559 added to function.ocifetchinto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-28947@lists.php.net to get a copy of this message | ||
Hi,
I am new to php, but have found out thru trail and error that when using the OCIFetchInto with
OCI_ASSOC, you do not need all the condtions of the for loop. So, this statement (a good example of
using OCIFetchInto)
for ($i= ;OCIFetchinto$page_stmt,&$row,OCI_ASSOC); $i++){
could actually be written as
for (;OCIFetchInto ($page_stmt, &$row, OCI_ASSOC);){
/*all the processing code here */
} // end of for loop
--
http://www.php.net/manual/en/function.ocifetchinto.php
http://master.php.net/manage/user-notes.php?action=edit+20559
http://master.php.net/manage/user-notes.php?action=delete+20559
http://master.php.net/manage/user-notes.php?action=reject+20559