note 30482 added to function.ora-fetch-into

From: Date: Wed, 19 Mar 2003 14:12:09 +0000
Subject: note 30482 added to function.ora-fetch-into
Groups: php.notes 
Request: Send a blank email to php-notes+get-45522@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>"; } -- http://www.php.net/manual/en/function.ora-fetch-into.php http://master.php.net/manage/user-notes.php?action=edit+30482 http://master.php.net/manage/user-notes.php?action=delete+30482 http://master.php.net/manage/user-notes.php?action=reject+30482

« previous php.notes (#45522) next »