'; }else{ echo '
'; } ?>
Nussfriedhof Team-NEWS'; $pdo = new PDO('mysql:host=localhost;dbname=web', 'root', ''); $sql = "SELECT bild, news, erstellt FROM newsteam ORDER BY id DESC"; foreach ((array)$pdo->query($sql) as $row) { echo $row['bild']; echo " "; } }else{ echo '

Nussfriedhof NEWS

'; $pdo = new PDO('mysql:host=localhost;dbname=web', 'root', ''); $sql = "SELECT bereich, news, erstellt FROM news ORDER BY id DESC"; foreach ($pdo->query($sql) as $row) { echo "

Erstellt am: ". $row['erstellt'] ."


"; echo "
"; echo "

Bereich: ". $row['bereich'] ."


"; echo "

". $row['news'] ."

"; echo "----------------------------------------------------------"; } } ?>