Here's what i want, after a group of say 3 rows in table i insert a blank row Here's my code for creating the tables and populating with data
$row_count =0;
while($data = $result->fetch_assoc()){
$row_count++;
$tbl .=' <tr>
<td>' .' ' .$data['houseNumber'].'</td>
<td>' .' '.$data['tenantName'].'</td>
<td>' .' '.$data['status'].'</td>
<td>' .' '.$data['rentDue'].'</td>
<td>' .' '.$data['rentPaid'].'</td>
<td></td>
<td></td>
<td></td>
<td>'.' ' .($data['rentPaid']).'</td>
</tr> ';
}//end while
How can i use this $row_count
variable to do that.
Thanks in advance