$Pagina = "Coleções"; $Estilo = "colecoes"; $Script = $Estilo; include("_includes/cabecalho.php"); mysql_query("UPDATE $tb_estaticas SET visitas = visitas + 1 WHERE slug = '$Estilo'"); $sqlest = mysql_query("SELECT * FROM $tb_estaticas WHERE slug = '$Estilo'") or die(mysql_error()); $resest = mysql_fetch_object($sqlest); include("_includes/topico.php"); $busca = mysql_query("SELECT count(*) FROM $tb_colecoes"); $limite = 9; include("_includes/paginacao.php"); $sqlcol = mysql_query("SELECT *, c.id AS idcol FROM $tb_colecoes AS c JOIN $tb_colecoes_img AS g ON g.id_colecao = c.id WHERE g.destaque = '1' ORDER BY c.id LIMIT $inicio, $reg_p_pag") or die(mysql_error()); ?>