include "am/header.php"; include "am/headerSuper.php"; switch($_SESSION['lang']) { case "en": $field = "nome_en AS nome"; break; case "es": $field = "nome_es AS nome"; break; case "de": $field = "nome_de AS nome"; break; default: $field = "nome AS nome"; break; } $app_query = ""; $titleQuery = ""; if(isset($_GET['C']) && $_GET['C'] != "") { $_GET['C'] = (int)$_GET['C']; $app_query .= "WHERE id_cat='".$_GET['C']."'"; $sth = $dbh->prepare("SELECT $field FROM categorie WHERE id='".$_GET['C']."'"); $sth->execute(); $cat = $sth->fetch(PDO::FETCH_ASSOC); } if(isset($_GET['S']) && $_GET['S'] != "") { $_GET['S'] = (int)$_GET['S']; $app_query .= " AND id_sotto='".$_GET['S']."'"; $sth = $dbh->prepare("SELECT $field FROM sottocategorie WHERE id='".$_GET['S']."'"); $sth->execute(); $sot = $sth->fetch(PDO::FETCH_ASSOC); } ?>
include "inc/head.php" ?>