Did anything change how row count is done?
PHP Code:
$sql = $vbulletin->db->query_read("SELECT * FROM `" . TABLE_PREFIX . "download_cats` WHERE cat_active = '1'");
$total = $vbulletin->db->num_rows($sql);
$i=0;
$perrow = $total-2;
while ($row = $db->fetch_array($sql))
{
$i++;
if ($total !== 0)
{
if ($total > $perrow){
$catc = '</td>';
$perrow = $perrow+2;
} else {
$perrow = $perrow-2;
$catc = '</td></tr><tr>';
}
I'm not sure if that is the problem but when I refresh my page is keeps displaying:
HTML Code:
</td></td></tr><tr>
Not sure if its the row count or not. Hard to say right now.
Thanks
Steve