something along these lines perhaps
WHILE ($i < $number):
PRINT "<table valign=top width=100% cellspacing=5 cellpadding=5><tr>
<td width=85%><font face=\"Verdana, Arial, Helvetica,sans-serif\" size=\"-1> $yourheadline</font></td>
</tr>
</table>";
}
$i++;ENDWHILE;
this proably will not work for you as a cut and paste.. as it is just a bit of a much larger script, but it gives you an idea.
what this does is takes the results and creates a new table for each result found from the initial query, until there are no more results to add, then the loop ends.
the base code is from an article on this site, one of the search engine script articles I believe.