Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'connection.php';
- $resultat = $conn->query("SELECT * FROM Kommentarer");
- if ($resultat->num_rows != 0)
- {
- while($row = $resultat->fetch_assoc())
- {
- $kommentar = $row['kommentar'];
- $eposten = $row['epost'];
- echo "<div class='kommentarernasida'> Epost: $eposten <br/> $kommentar <br/></div>";
- }
- }
- else
- {
- echo "Det finns inga kommentarer ännu!";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement