query($sql); $nt = $result->fetch_assoc(); $sql1 = "SELECT * FROM Firma WHERE ID='2' "; $result1 = $db->query($sql1); $nt1 = $result1->fetch_assoc(); $sql2 = "SELECT * FROM objekte WHERE Aktiv = 1 AND FotoStart = 1 ORDER BY RAND(); "; $result2 = $db->query($sql2); $sql3 = "SELECT * FROM objekte WHERE Aktiv = '1' AND Neu = '1' ORDER BY RAND(); "; $result3 = $db->query($sql3); while ( $nt3 = $result3->fetch_assoc() ) { if ( file_exists ( "img/objekte/" . $nt3['ID'] . "_1.jpg" ) ) { $image_info = getimagesize ( "img/objekte/" . $nt3['ID'] . "_1.jpg" ); if ( $image_info[0] > $image_info[1] ) { break; } } } $_OV_Typ3 = $nt3['O_TYP'] . ' - ' . $nt3['V_TYP']; if ("Wohnung - Miete" == $_OV_Typ3) { $neu = "index.php?section=immobilien&topic=wohnung_miete&obj=".$nt3['ID']; } elseif ("Wohnung - Kauf" == $_OV_Typ3) { $neu = "index.php?section=immobilien&topic=wohnung_kauf&obj=".$nt3['ID']; } elseif ("Haus - Miete" == $_OV_Typ3) { $neu = "index.php?section=immobilien&topic=haus_miete&obj=".$nt3['ID']; } elseif ("Haus - Kauf" == $_OV_Typ3) { $neu = "index.php?section=immobilien&topic=haus_kauf&obj=".$nt3['ID']; } elseif ("gewerbe" == $nt3['KAT'] AND "Kauf" == $nt3['V_TYP'] ) { $neu = "index.php?section=immobilien&topic=gewerbe_kauf&obj=".$nt3['ID']; } elseif ("gewerbe" == $nt3['KAT'] AND "Miete" == $nt3['V_TYP'] ) { $neu = "index.php?section=immobilien&topic=gewerbe_miete&obj=".$nt3['ID']; } elseif ("anlage" == $nt3['KAT'] ) { $neu = "index.php?section=immobilien&topic=anlage&obj=".$nt3['ID']; } echo "
\n"; echo "

" . $nt ['Firma'] . "

"; echo $nt ['Vertreter1']; echo "
 
"; echo "
\n"; echo "
\n"; echo "

Neu bei Wachter!

\n"; echo "\""\n"; echo "
\n"; echo "
\n"; echo "

Wachter Immobilien

\n"; echo "

Kirchenöschle 28

\n"; echo "

88422 Betzenweiler

\n"; echo "

+49 7374 9205882

\n"; echo " info@wachter-immobilien.com \n"; echo "
\n"; echo "
\n"; echo " 
\n"; echo "
\n"; echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; while (($count <= 4) AND ($j < 2)) { while (($nt2 = $result2->fetch_assoc()) AND ($count<= 4)) { $file = "img/objekte/".$nt2['ID']."_1.jpg"; $_OV_Typ2 = $nt2['O_TYP'] . ' - ' . $nt2['V_TYP']; if ("Wohnung - Miete" == $_OV_Typ2) { $link = "index.php?section=immobilien&topic=wohnung_miete&obj=".$nt2['ID']; } elseif ("Wohnung - Kauf" == $_OV_Typ2) { $link = "index.php?section=immobilien&topic=wohnung_kauf&obj=".$nt2['ID']; } elseif ("Haus - Miete" == $_OV_Typ2) { $link = "index.php?section=immobilien&topic=haus_miete&obj=".$nt2['ID']; } elseif ("Haus - Kauf" == $_OV_Typ2) { $link = "index.php?section=immobilien&topic=haus_kauf&obj=".$nt2['ID']; } elseif ("gewerbe" == $nt2['KAT'] AND "Kauf" == $nt2['V_TYP'] ) { $link = "index.php?section=immobilien&topic=gewerbe_kauf&obj=".$nt2['ID']; } elseif ("gewerbe" == $nt2['KAT'] AND "Miete" == $nt2['V_TYP'] ) { $link = "index.php?section=immobilien&topic=gewerbe_miete&obj=".$nt2['ID']; } elseif ("anlage" == $nt2['KAT'] ) { $link = "index.php?section=immobilien&topic=anlage&obj=".$nt2['ID']; } if (file_exists($file)) { echo " \n"; $count++; } } $j = 2; } echo " \n"; echo "
\""
\n"; echo "
\n"; ?>