Code: Select all
$count ++;
if ($count == 1) { echo "<tr>";}
if (($count % 2) == 0) echo "<tr bgcolor='#ffffff'>";
echo "<td><div class='submenu'><a href='/categ/$row->catid/$categreplace'>$row->catname $count</a></div></td>";
if (($count % 2) == 0) { echo "</tr>";}
So most secure means is by a table.
So I needs to be <tr><td>test</td><td><test</td></tr>..... and so on.
So the first one obviously needs to be shown if $count == 1, and then after every two rows.
Each way I try it, it goes wrong.