include 'connessione.php'; $pagina = 'interna'; $titolo = 'News'; include 'header.php'; include 'data.php'; $queryl= "SELECT * FROM news WHERE visibile=1 ORDER BY data_news DESC"; $resultl= mysql_query($queryl,$link); $tot_resl = mysql_num_rows($resultl); $resultnm = mysql_query($queryl,$link); $tot_resnm = mysql_num_rows($resultnm); if(isset($_GET['id_news']) && $_GET['id_news']!=''){ $id_news = $_GET['id_news']; $queryn="SELECT * FROM news WHERE id_news=$id_news"; $resultn=mysql_query($queryn,$link); $rigan=mysql_fetch_array($resultn); $data_newsn = convertData($rigan['data_news']); $imgn = $rigan['img']; $querynt="SELECT * FROM traduzioni WHERE tabella='news' AND id=$id_news AND lingua='$lingua'"; $resultnt=mysql_query($querynt,$link); $rigant=mysql_fetch_array($resultnt); $titolon = $rigant['titolo']; $teston = $rigant['testo']; $allegaton = $rigant['allegato']; } ?>