//Seleziono le news in base all'ordinamento
$strSQL="SELECT * FROM infonews WHERE vhome=1 ORDER BY phome ASC, chiave DESC";
$new=mysql_query($strSQL,$db)or die("ERRORE QUERY". mysql_error());
$news=mysql_fetch_array($new);
//seleziono autore o hostel che l'ha scritta
if($news[id_autore]!=0){
$strSQL="SELECT * FROM autore WHERE chiave='$news[id_autore]'";
$a=mysql_query($strSQL,$db);
$autore=mysql_fetch_array($a);
$autor=$autore[nome].' '.$autore[cognome];
}
else{
$strSQL="SELECT * FROM structureData WHERE id=$news[id_hostel] Limit 1";
$a=mysql_query($strSQL,$db);
$autore=mysql_fetch_array($a);
$autor=$autore[name];
}
$link=str_replace(' ', '%20', $news[categoria]);
$CATEGORIA=strtoupper($news[categoria]);
?>
Find Hostels all over the World
Search This Weekend News all around the World.
$strSQL="SELECT n.id_nazione, n.nazione, c.nome_citta
FROM nazioni n, geografiaCitta c, cityWeek w
WHERE c.id_nazione=n.id_nazione AND
w.nome=c.nome_citta
ORDER BY n.nazione, w.nome ASC";
$c=mysql_query($strSQL,$db)or die("ERRORE QUERY". mysql_error());
echo'