note 46316 added to function.ora-do
| From: | thiagoribeiro at gmail dot com | Date: | Wed, 06 Oct 2004 21:56:40 +0000 |
| Subject: | note 46316 added to function.ora-do | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78099@lists.php.net to get a copy of this message | ||
If you want to get information from oracle, use DO WHILE because if you use the while command you
won't be able to get the first value.
The command ora_fetch works moving the pointer to the next line, the first value of the query dont
need to be refenced.
Example:
$numCols = ora_numcols($query);
do {
for($i=0;$i<$numCols;$i++) {
$tmp=ora_getcolumn($query,$i);
echo $tmp."<br>";
}
} while(ora_fetch($query));
----
Manual Page -- http://www.php.net/manual/en/function.ora-do.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46316
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46316&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46316&report=yes
Search -- http://master.php.net/manage/user-notes.php