note 30482 deleted from function.ora-fetch-into by betz

From: Date: Thu, 20 Mar 2003 13:41:51 +0000
Subject: note 30482 deleted from function.ora-fetch-into by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-45545@lists.php.net to get a copy of this message
function affiche($curs,$query) { ora_parse($curs, $query); ora_exec($curs); $ncols = ora_numcols($curs); echo "<table border = 1 cellspading =0 cellspacing =0 align = center>"; echo "<tr bgcolor = #DCE2FC>"; for ($i=0; $i<$ncols; $i++) { echo "<th width = 15%>"; echo ora_columnname($curs,$i); echo "</th>"; } echo "</tr>"; while (ora_fetch_into($curs, $results)) { echo "<tr>"; $j = 0; while ($j < $ncols) { echo "<td>"; if ($results[$j] == NULL) { echo "&nbsp"; } else { echo "$results[$j]"; } echo "</td>"; $j =$j +1 ; } echo "</tr>"; } echo "</table>"; }

« previous php.notes (#45545) next »