ich had Programm this code. It`s in principle the same as in a tutorial. Maybe you see me issue. The connectin to the Database is successful.
In the PHP tag i have a echo with 'Test'. This echo runs. I cant see all HTML Tags after this.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="http://fonts.google.com/css?family=Lato:300,400" rel="stylesheet"type="text/css">
<link href="https://fonts.google.com/css?family=Oswald:700,400" rel="stylesheet"type="text/css">
<title>Online Predigt</title>
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
<!--<link rel="stylesheet" href="css/audioplayer.css">-->
</head>
<body>
<?php
echo "Test";
require("inc/db_connect.php");
$abfrage = "SELECT * FROM online_predigten ORDER BY ID DESC LIMIT 5";
$ergebnis = mysqli_query($abfrage);
while ($row = mysqli_fetch_object($ergebnis)) {
?>
<div id="audiobox">
<div id="infos">
<h3 id="titel"><?php echo $row->titel; ?><h3><br>
<p id="prediger"><?php echo $row->prediger; ?></p><br>
<p id="datum"><?php echo $row->datum; ?></p><br>
<img src="<?php echo $row->img_pfad; ?>" alt="Prediger" height="100" width="100"><br>
</div>
<div id="audioplayer">
<audio controls>
<src="<?php echo $row->audio_pfad; ?>" type="audio/mpeg"><br>
</audio>
</div>
</div>
<?php
}
?>
</body>
</html>
Blessed Adrian
Verbindung zum MySQL Server erfolgreich aufgebaut.
'; } ?> I deleted the the DB Data, but thats the db_connect.db so for the msqli_query i have to write this?: $ergebnis = mysqli_query("SELECT * FROM online_predigten ORDER BY ID DESC LIMIT 5"); – Adrian Oct 13 '16 at 09:41