Subject | Re: [firebird-php] Re: Empty Result Set |
---|---|
Author | Magnus Titho |
Post date | 2004-12-29T10:47:46Z |
troth1871 schrieb am 29.12.2004 11:39:
$result = ibase_fetch_row($query);
if ($result)
{
echo "<table>";
do
{
echo "<tr><td>" . $result[0] . "</tr></td>";
$result = ibase_fetch_row($query);
}
while ($result);
echo "</table>";
}
>> while (($this_result = ibase_fetch_row($result)) != false)Try something like this:
>
>
> The Problem with this solution is, that I want to make a single output
> like a table tag before the loop starts. This is important because I
> don't want to have 20 table tags instead of the one I really need.
$result = ibase_fetch_row($query);
if ($result)
{
echo "<table>";
do
{
echo "<tr><td>" . $result[0] . "</tr></td>";
$result = ibase_fetch_row($query);
}
while ($result);
echo "</table>";
}
> RegardsMagnus
> Thomas