note 5054 deleted from Ora_Fetch by ronabop

From: Date: Wed, 23 Aug 2000 08:25:25 +0000
Subject: note 5054 deleted from Ora_Fetch by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-2969@lists.php.net to get a copy of this message
Trying to do "select * from tablename" with Oracle 7.3; php4.0rc1. Below code fragment works with exception that it does not return first row (or any row) database key (1st column) = 0: // show data from the table $numcols = 0; $rowfetched = ora_fetch($cursor); while (($rowfetched)) { $numcols = ora_numcols($cursor); for ($column = 0; $column < $numcols; $column++) { $data = trim(ora_getcolumn($cursor, $column)); if ($data == "") $data = "NULL"; echo "$datat"; } echo "n"; $rowfetched = ora_fetch($cursor); } Any idea on how to get around this?

« previous php.notes (#2969) next »