I'm having a script which creates tables from a MySQL query. Now it sometimes misses the last closing </tr> within a table after the last result. What I would like to do is to check for the last result of the $offset and echo "</tr>"; in this case.
So this line should contain something like:
if($counterr==2 OR if is the last result of the $offset) echo "</tr>";
$result = mysql_query("SELECT bizID,bizName GROUP BY bizName ORDER BY bizName ASC LIMIT $offset,100");
$counterr = 0;