note 19276 deleted from function.ora-fetch by philip
| From: | philip@php.net | Date: | Fri, 28 Nov 2008 19:37:02 +0000 |
| Subject: | note 19276 deleted from function.ora-fetch by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147119@lists.php.net to get a copy of this message | ||
Note Submitter:
----
Obviously Daniel has no idea what he is talking about! ora_fetch() is a wonderful tool for
extracting a row from the data base. Here is how:
while(ora_fetch($cursor) == 1){ // WHILE THERE IS A ROW
for($i=0;$i<$numCols;$i++){ // PARSE THROUGH THE COLUMNS
echo ora_getcolumn($cursor,$i); // PRINT THE RESULTS
}
} // NEXT ROW
There are many ways to modify the above code to get the desired result, but this is a basic way to
parse through all of the result set.