require("_configs/config.php"); if(empty($_GET[slug])){ header("Location: ".$Url."/colecoes.html"); } else { $slug = $_GET[slug]; } mysql_query("UPDATE $tb_colecoes SET visitas = visitas + 1 WHERE slug = '$slug'"); $sqlcol = mysql_query("SELECT * FROM $tb_colecoes WHERE slug = '$slug'") or die(mysql_error()); $rescol = mysql_fetch_object($sqlcol); $sqlimg = mysql_query("SELECT * FROM $tb_colecoes_img WHERE id_colecao = '$rescol->id' ORDER BY destaque DESC") or die(mysql_error()); $Pagina = $rescol->titulo; $Estilo = "colecao"; $Script = $Estilo; include("_includes/cabecalho.php"); include("_includes/topico.php"); ?>