50,'...','')) AS subnet_info, COUNT(node.subnet_id) AS node_counter FROM subnet AS s LEFT JOIN node USING (subnet_id) GROUP BY s.subnet_id ORDER BY INET_ATON(s.subnet_address)"; $sth = $dbh->query($sql); $smarty->assign("subnets", $sth->fetchAll()); $smarty->display("subnet.tpl"); include("footer.php"); ?>