include("../global.php"); include("window.php"); $link = mysql_connect($host_db, $usuario_db, $senha_db); $id = $_REQUEST['id']; $news = $_REQUEST['news']; $tabela = $_REQUEST['tabela']; $id_pro = $_REQUEST['id_pro']; $carregar = "meio.php"; if($news == 1){ $id = substr($id, 9, (strlen($id) - 15)); if($tabela == "noticias") $carregar = "noticia.php?id=$id"; } if($tabela == "pro") $carregar = "produto_demo.php?id=$id_pro"; //------------------------------------- destaque $listar = "SELECT COD_ID FROM produtos WHERE VISIVEL=1 AND DESTAQUE=1"; $listado = mysql_db_query($nome_db, $listar); $total_pro = mysql_num_rows($listado); while($campo = mysql_fetch_object($listado)){ $show_des = "
| ".imagem_principal("arquivos_produtos", "COD_ID", $campo->COD_ID, "", "center", 140, 0, 0, "", 105, 0)." |
![]() |
|
|||||||||||||