to many <br>?
require_once('admin/config.php');
require_once('admin/options.php');
include('templates/'.$config['temp'].'/home.php');
$result = mysql_query("SELECT catid, cat, catnom FROM oscaty GROUP BY catnom, cat ASC")
or die(mysql_error());
?>
<DIV id=BODYS>
<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
<table class=topptable>
<tr>
<td width="20%">
<?php
while($row=mysql_fetch_array($result)){
if($config['rowresult']<$row['catnom'])
echo '<td valign=top width="20%">';
if($config['rowresult']=$row['catnom'])
echo '<DIV id=nava>';
echo "<a href=\"catsy.php?id=$row[catid]\">$row[cat]</a>";
echo '</DIV>';
$resulty = mysql_query("SELECT linkid, text, linkurl, main FROM oslink WHERE idcat=".$row['catid']." ORDER by text ASC")
or die(mysql_error());
while($link=mysql_fetch_array($resulty)){
if($link['main']==1){
echo " <a href=\"links.php?id=$link[linkid]\">$link[text]</a><br>";
}
}
echo " <a href=\"catsy.php?id=$row[catid]\">..</a>";
}
?>