PHP/MYSQL table looping issue please help!?

i have my tables set to loop down rows, but i have no idea how to make it loop so that it will go down a row to a certain point, stop, then continue in the next column. EX.

what i want:
a d g j m p s v y
b e h k n q t w z
c f i l o r u x

what i have:
a
b
c
d
e...

here is my code

<?
$sql="SELECT * FROM $tbl_name";

$result=mysql_query($sql);
?>
<table>
<tr>
<td><strong> TITLE </strong><BR></td>
</tr>


<?php
while($ rows=mysql_fetch_array( $result )){
// Start looping table row
?>
<tr>
<td bgcolor="#FFFFFF">filler</td>
</tr>

<?php
// Exit looping and close connection
}
?>
</table>
 
Back
Top