Ok. sorry.
but it not worked.
see.
i want to split records and put it HTML code with 6 rows.
see the following code:
// show html tag
echo '<table width="100%" cellpadding="3" cellspacing="3">';
$num = $DB->query_num;
$i = 1;
while($row = mysql_fetch_assoc($DB->query_result)){
$start_tr = ($i == 6 || $i == 12 || $i == 18)?'<tr>':'';
$end_tr = ($i == 6 || $i == 12 || $i == 18)?'</tr>':'';
echo "
$start_tr
<td valign=\"top\" class=\"cust_td\"><p class=\"cust_title\">{$row['uname']}</p></td>
$end_tr
";
$i++;
}
echo '</table>';
if total of records is 21 output was:
6 rows
1 row
6 rpws
1 row
6 rows
1 row
3 row
you have any idea for this code?
i want to split 6 rows
ie:
records is (n) record:
6 rows
6 rows
6 rows
etc...
Thanks