, Info hostels and backpackers news online, stories fact and more from around the world, " />
" />
//Seleziono le news in base all'ordinamento
$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]);
?>