Hi,
I have this code which produces a table with 6 columns x 2 rows. How can i stop the string "</tr><tr>" being echo'd the first time that "$number % 6 == 0".
<table width="100%" border="0" cellpadding="3" cellspacing="3">
<tr>
<?php
$number = mysql_num_rows($result) + 1; //13
while($rows=mysql_fetch_array($result)){
$number = $number - 1;
if($number % 6 == 0){
echo "</tr><tr>";}?>
<td>x</td>
<?php } ?>
</tr>
</table>
Thank You 😉