PDA

View Full Version : Way of showing categories


karkhaneh
09-30-2005, 04:53 PM
I have a question about showing categories in a skin.
e.g.for showing all categories we use this codes:


for($i = 0; $i < $categoryrows; $i++)
*{
* * echo '<a class="nav" href="'.$categorylink[$i].'">'.$categoryname[$i].' </a> <hr>';
*}
}



if its correct, I think for swhowing specific categories we use this code:



for($i = 0; $i < 5; $i++)
* * *{
* * * * * * *echo '<a class="nav" href="'.$categorylink[$i].'">'.$categoryname[$i].' </a> <br>';
* * *}



I want to show the first 3 categoris in a specific palce, and the last 3 categories in another place and the rest of them which is an interwall between the first 3 and the last 3, in another palce. which codes should I use. please help me.
tanks a lot!