Hi all,
I want a new <tr> created each time 5 results are displayed. The next five results then appear on a new <tr>
How do I do this?
Thanks.
if ($num_results > 0)
{
echo '<table><tr>';
while ($row = mssql_fetch_assoc($result))
{
echo '<td>';
echo '<a href="index.php?id2='.$row['id'].'">'.$row['name'].'</a>';
echo '</td>';
}
echo '</tr></table>';
}