Hi! Please see http://www.kengaime.com As you can see there is a main category named "Mp3 Shqip" with a lot of sub directories Now i want that all those sub directories in two or more columns. Not only in one colums because the list will be grow after some days. Below you have the code that i think that must be modified function index() { global $prefix, $db, $module_name; $result_sn = $db->sql_query("SELECT ns_dl_show_num, ns_dl_show_full, ns_dl_show_sub_cats from ".$prefix."_ns_downloads"); list($ns_dl_show_num, $ns_dl_show_full, $ns_dl_show_sub_cats) = $db->sql_fetchrow($result_sn); include("header.php"); if (file_exists("modules/$module_name/copyright.php")) { $maindownload = 0; menu($maindownload); echo "<br>"; ns_dl_feature_box(); OpenTable(); ns_mod_title2("main_categories",""._DOWNLOADSMAINCAT.""); echo "<br><br>"; echo "<table width=\"80%\" border=\"0\" cellspacing=\"5\" cellpadding=\"0\" align=\"center\"><tr>"; $result = $db->sql_query("select cid, title, cdescription from ".$prefix."_downloads_categories where parentid='0' order by title"); $count = 0; while(list($cid, $title, $cdescription) = $db->sql_fetchrow($result)) { $cid = intval($cid); if ($ns_dl_show_num == 1) { $cresult = $db->sql_query("select * from ".$prefix."_downloads_downloads where cid='$cid'"); $cnumrows = $db->sql_numrows($cresult); $cnumm = " <font class=\"tiny\">($cnumrows)</font>"; } else { $cnumm = ""; } echo "<td width=\"50%\" valign=\"top\">"; ns_dl_image(); echo "<a href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid\">$title</a>$cnumm"; categorynewdownloadgraphic($cid); echo "<br>"; if ($cdescription) { echo "<font class=\"tiny\">$cdescription</font><br>"; } else { echo ""; } if ($ns_dl_show_sub_cats == 1) { $result2 = $db->sql_query("select cid, title from ".$prefix."_downloads_categories where parentid='$cid' order by title limit 0,100"); $space = 0; while(list($cid, $stitle) = $db->sql_fetchrow($result2)) { $cid = intval($cid); if ($space == 0) { echo " <b>•</b> "; } if ($space>0) { echo ", <br>"; echo " <b>•</b> "; } if ($ns_dl_show_num == 1) { $cresult2 = $db->sql_query("select * from ".$prefix."_downloads_downloads where cid='$cid'"); $cnumrows2 = $db->sql_numrows($cresult2); $cnum = "<font class=\"tiny\"> ($cnumrows2)</font>"; } else { $cnumrows2 = ""; } echo "<a class=\"small\" href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid\">$stitle</a>$cnum</font>"; $space++; } } if ($count<1) { echo "</td><td> </td>"; $dum = 1; } $count++; if ($count==2) { echo "</div></td></tr><tr><td> </td></tr><tr>"; $count = 0; $dum = 0; } } if ($dum == 1) { echo "</tr></table>"; } elseif ($dum == 0) { echo "<td></td></tr></table>"; } echo "<br>"; $result = $db->sql_query("select * from ".$prefix."_downloads_downloads"); $numrows = $db->sql_numrows($result); $result = $db->sql_query("select * from ".$prefix."_downloads_categories"); $catnum = $db->sql_numrows($result); if ($ns_dl_show_full == 1) { OpenTable2(); echo "<center><font class=\"content\">"._THEREARE." <b>$numrows</b> "._DOWNLOADS." "._AND." <b>$catnum</b> "._CATEGORIES." "._INDB."</font></center>"; include ('adsensedownloads2.php'); CloseTable2(); } CloseTable(); include("footer.php"); } else { echo "<br>"; OpenTable(); echo "<br><center><b>Opps, you forgot to upload the Copyright.php file!<br><br>Upload the copyright.php file, and this message will go away.<br><br>Thanks for giving me credit!</b></center><br>"; CloseTable(); include("footer.php"); die(); } } PHP: Thanks in advance for this