include ('inc_head.php'); ?>
/*
if ($_GET['sottosezione']) {
$sottosezione = (int) $_GET['sottosezione'];
if ($_GET['sezione']) $sezione = (int) $_GET['sezione'];
echo get_boxes_interna('rel_contenuti_guida', $sottosezione, $sezione);
} else header ("location: index.htm");
*/
// TITOLO CATEGORIA
$id_sez = (int) $_GET['sezione'];
if ($id_sez!='' && $id_sez!='0'){
$query_cat="SELECT nome FROM ".$tbl_prefix."cate_guida WHERE id=".$id_sez;
$res_cat=mysql_query($query_cat) or die(mysql_error());
$dati_cat=mysql_fetch_assoc($res_cat);
$nome_cat=$dati_cat['nome'];
//echo "
$nome_cat
";
}
?>
$id = (int) $_GET['sezione'];
//$res = safe_query("SELECT * FROM ".$tbl_prefix."rel_sottoguida WHERE id_rel = '$id' LIMIT 1");
$res = safe_query("SELECT * FROM ".$tbl_prefix."rel_sottoguida WHERE attivo='1' and id_rel = '$id'");
// recupera dati
$immagine="";
$cc=1;
$num_art=mysql_num_rows($res);
/*if($num_art=='1'){
header ("location: index.htm");
}*/
while($db_data = mysql_fetch_array($res)){
$titolo = $db_data['nome'];
$id = $db_data['id'];
$testo = $db_data['testo'];
$abstract = $db_data['t'];
// 18/08/06 Corretto il campo da immagine a img
if ($db_data['img'] >0) $immagine = "";
//Ruggero 05/04/2011
$link="sezione-{$_GET['sezione']}-sottosezione-{$_GET['sottosezione']}-id-{$db_data['id']}-{$db_data['nome']}.htm";
echo <<
$titolo
$immagine
$testo
BBOX;
/*
if ($cc==1 || $cc==3 || $cc==5) {
echo "
";
}
$cc++;
* */
}
?>
include ('inc_bottom.php'); ?>