include_once "inc.php";
if ($land == "restaurants"){
$sql = "SELECT id, bundesland, kreis, ort, url_bundesland, url_kreis, url_ort FROM eg_koordinaten WHERE 1 LIMIT 1";
}elseif ($land != "0" AND $land != "restaurants" AND $kreis == "0"){
$sql = "SELECT id, bundesland, kreis, ort, url_bundesland, url_kreis, url_ort FROM eg_koordinaten WHERE url_bundesland = '$land' LIMIT 1";
}elseif($kreis != "0" AND $ort == "0" OR $kreis != "0" AND $ort == "$kreis"){
$sql = "SELECT id, bundesland, kreis, ort, url_bundesland, url_kreis, url_ort FROM eg_koordinaten WHERE url_kreis = '$kreis' LIMIT 1";
}elseif($ort != "0"){
$sql = "SELECT id, bundesland, kreis, ort, url_bundesland, url_kreis, url_ort FROM eg_koordinaten WHERE url_ort = '$ort' LIMIT 1";
}
$result = mysqli_query($mysql_link, $sql);
while ($i = mysqli_fetch_array($result)) {
if ($land == "restaurants"){
$branding_title = "Restaurants in der Schweiz";
echo "
$branding_title \n";
echo " \n";
echo " \n";
}elseif ($land != "0" AND $land != "restaurants" AND $kreis == "0"){
$branding_title = "Restaurants in $i[bundesland]";
echo "$branding_title \n";
echo " \n";
echo " \n";
}elseif($kreis != "0" AND $ort == "0" OR $kreis != "0" AND $ort == "$kreis"){
$branding_title = "Restaurants in $i[kreis]";
echo "$branding_title \n";
echo " \n";
echo " \n";
}elseif($ort != "0"){
$branding_title = "Restaurants in $i[ort]";
echo "$branding_title \n";
echo " \n";
echo " \n";
}
}
?>
Restaurants in
RESTAURANTS »
Thurgau » Frauenfeld »
Umkreis
5 km
1 km
2 km
3 km
5 km
10 km
20 km
30 km
40 km
50 km
60 km
70 km
80 km
90 km
100 km
ohne Einschränkung
Sortierung
beste Ergebnisse
alphabetisch
nach Entfernung (km)
nach Bewertungen
beste Ergebnisse
include "function_listsuche.inc";
if ("$kreis" == "$ort"){
// Wenn Ort und Kreis identisch sind, also entweder a) Kreisstadt oder b) gesamter Kreis ausgewählt wurde
$latneu = getavgcoordsbykreis("$land", "$kreis", "lat");
$lonneu = getavgcoordsbykreis("$land", "$kreis", "lon");
}else{
// Wenn regulärer Ort
$latneu = getavgcoordsbyort("$land", "$kreis", "$ort", "lat");
$lonneu = getavgcoordsbyort("$land", "$kreis", "$ort", "lon");
}
?>