Subject Re: Empty Result Set
Author troth1871
--- In firebird-php@yahoogroups.com, Magnus Titho <magnus.titho@k...>
wrote:
>
> troth1871 schrieb am 29.12.2004 11:39:
>
> >> while (($this_result = ibase_fetch_row($result)) != false)
> >
> >
> > 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.
>
> Try something like this:
>
> $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>";
> }
>
> > Regards
> > Thomas
>
>
> Magnus

Thanks a lot. This solution works fine.

Regards
Thomas