note 19276 added to function.ora-fetch

From: Date: Thu, 21 Feb 2002 17:01:17 +0000
Subject: note 19276 added to function.ora-fetch
Groups: php.notes 
Request: Send a blank email to php-notes+get-26898@lists.php.net to get a copy of this message
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. -- http://www.php.net/manual/en/function.ora-fetch.php http://master.php.net/manage/user-notes.php?action=edit+19276 http://master.php.net/manage/user-notes.php?action=delete+19276 http://master.php.net/manage/user-notes.php?action=reject+19276

« previous php.notes (#26898) next »