display items vertically
- by shawn swanson
This is my code:
<?php
while($fetch_cat = mysql_fetch_array($rescat))
{
$per_cnt++;
?>
<li style="margin-left:10px;">
<a href="sub_cat.php?cat_id=<?php echo $fetch_cat['cat_id'];?>"
style="color:#431603;text-decoration:none;"><?php
echo stripslashes($fetch_cat['category_name']);?>
</a>
</li>
<?php
}
?>
This is the output I am getting- alphabetical order horizontally:
A B C
D E F
G H I
J
This is what I want to show- alphabetical order vertically:
A E H
B F I
C G J
D
Please help.
Thanks