note 20559 deleted from function.ocifetchinto by philip
| From: | philip@php.net | Date: | Wed, 22 Jan 2003 07:21:07 +0000 |
| Subject: | note 20559 deleted from function.ocifetchinto by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-42558@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