Hi, How can I use modulus to add TR tag for my output below?
<tr>
<td>data1<td>
<td>data1<td>
<td>data1<td>
<td>data1<td>
<td>data1<td>
</tr>
<tr>
<td>data1<td>
<td>data1<td>
<td>data1<td>
<td>data1<td>
<td>data1<td>
</tr>
<tr>
<td>data2<td>
<td>data2<td>
<td>data2<td>
<td>data2<td>
<td>data2<td>
</tr>
<tr>
<td>data2<td>
<td>data2<td>
<td>data2<td>
<td>data2<td>
<td>data2<td>
</tr>
In the example above got 2 set of data. It will loop 5 times inside the first 2 tr tag
<tr>
<td>data1<td><---loop data
<td>data1.1<td><---loop data
<td>data1.2<td><---loop data
<td>data1.3<td><---loop data
<td>data1.4<td><---loop data
</tr>
<tr>
<td>data1<td><---loop data
<td>data1.1<td><---loop data
<td>data1.2<td><---loop data
<td>data1.3<td><---loop data
<td>data1.4<td><---loop data
</tr>
and after 5 times will create another tr tag to do the samething.
<tr>
<td>data2<td><---loop data
<td>data2.1<td><---loop data
<td>data2.2<td><---loop data
<td>data2.3<td><---loop data
<td>data2.4<td><---loop data
</tr>
<tr>
<td>data2<td><---loop data
<td>data2.1<td><---loop data
<td>data2.2<td><---loop data
<td>data2.3<td><---loop data
<td>data2.4<td><---loop data
</tr>
and so on.. Hopefully you can understand my explaination.