What I'am doing wrong??? I just don't know. All I will like to do is for every Odd record create a new row(TR) with new <TD>. If record is Even in record set start second <td> en close </td> en close row(</tr>). <?php $tel = 1; $dbrows = mysql_num_rows($rsSubGroup); ?> <?php do { ?> <?php if (($tel % 2) >0) {echo "<tr>"; echo "<td>"; echo $row_rsSubGroup['name']; echo "</td>"; if $tel == $dbrows{ echo "</tr>"; } } else { echo "<td>"; echo $row_rsSubGroup['name']; echo "</td>"; echo "</tr>"; } $tel +=1; ?> <?php } while ($row_rsSubGroup = mysql_fetch_assoc($rsSubGroup)); ?> -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php