PHP Code:
<?
$counter = 0;
// variable to indicate when counting starts
$now_counting = false;
$rs = mysql_query($query,$conn);
while($row=mysql_fetch_array($rs)){
// start counter when record is found
if ($row[time_start]==$round_time && $now_counting==false){
$now_counting = true;
}
// build array when counting has started
if($now_counting == true)
{
$new_array[] = $row[time_start];
// increment counter
$counter++;
}
// leave loop when you've counted 7 records
if($counter > 7)
break;
}
?>
more like that?