$db = mysqli_connect( 'localhost', 'dbstroebel', 'Esj1#u42', 'jstroebel_db_stroebelhof' );
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
$sqltermin = "SELECT * from wohnungen WHERE id = ".$_GET['id']."";
$resulttermin = mysqli_query ($db, $sqltermin);
if(mysqli_num_rows($resulttermin) > 0)
{
for($i=0; $i < $rowtermin = mysqli_fetch_assoc($resulttermin); $i++ ) {
$id = $rowtermin['id'];
$titel = $rowtermin['titel'];
$text = $rowtermin['text'];
$text2 = $rowtermin['text2'];
$preis_a = $rowtermin['preis_a'];
$preis_b = $rowtermin['preis_b'];
$preis_c = $rowtermin['preis_c'];
$preis_a_zusatz = $rowtermin['preis_a_zusatz'];
$preis_b_zusatz = $rowtermin['preis_b_zusatz'];
$preis_c_zusatz = $rowtermin['preis_c_zusatz'];
?>
echo $titel ?> (DTV-Klassifizierung)
echo $text ?>
Saison A: echo $preis_a ?> € echo $preis_a_zusatz ?>
Saison B: echo $preis_b ?> € echo $preis_b_zusatz ?>
if($preis_c != "")
{
?>
Saison C: echo $preis_c ?> € echo $preis_c_zusatz ?>
}
?>
echo $text2 ?>
}
}else{
echo "
Keine Wohnung vorhanden
";
}
?>