include 'connessione.php'; $pagina = 'offerte'; $titolo = 'offerte'; $queryep= "SELECT * FROM offerte WHERE visibile=1 ORDER BY ordine"; $resultep= mysql_query($queryep,$link); $tot_resep = mysql_num_rows($resultep); if(isset($_GET['id_offerta']) && $_GET['id_offerta']!=''){ $id_offerta = $_GET['id_offerta']; $queryprd="SELECT * FROM offerte WHERE id_offerta=$id_offerta"; $resultprd=mysql_query($queryprd,$link); $rigaprd=mysql_fetch_array($resultprd); $queryprdt="SELECT * FROM traduzioni WHERE tabella='offerte' AND id=$id_offerta AND lingua='$lingua'"; $resultprdt=mysql_query($queryprdt,$link); $rigaprdt=mysql_fetch_array($resultprdt); } include 'header.php'; ?>