//Seleziono le news in base all'ordinamento
$n_country = $_GET[country];
$strSQL="SELECT * FROM infonews WHERE vhome=1 ORDER BY phome ASC, chiave DESC";
//$strSQL="SELECT * FROM infonews WHERE vhome=1 AND nazione='$n_country' ORDER BY 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]);
?>
$nazione=$_GET[country];
$continente=$_GET[continent];
if ($continente=="Africa") $id_cont=1;
if ($continente=="America") $id_cont=2;
if ($continente=="Asia") $id_cont=3;
if ($continente=="Europe") $id_cont=4;
if ($continente=="Oceania") $id_cont=5;
$link=strtolower($continente)."fact.php?continent=$continente";
$titoloBack= 'World Hostel Country List';
$nazioneName=str_replace(' ','%20',$nazione);
$nazione=str_replace(' ','%20',strtolower($nazione));
$n=str_replace('%20',' ',$nazioneName);
$bandiera=str_replace(' ', '%20',$nazione)."-lgflag.gif";
$flagTitolo= ' '.$n.'';
?>