note 30481 added to function.ora-fetch-into
| From: | php-general at lists dot php dot net | Date: | Wed, 19 Mar 2003 14:11:22 +0000 |
| Subject: | note 30481 added to function.ora-fetch-into | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45521@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 " ";
}
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+30481
http://master.php.net/manage/user-notes.php?action=delete+30481
http://master.php.net/manage/user-notes.php?action=reject+30481