Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $db = mysqli_connect("127.0.0.1", "123", "123", "123");
- $posts = $db->query("SELECT * FROM matposts ORDER BY id DESC");
- while ($row = $posts->fetch_assoc()) {
- echo $row["id"]." Title: ".$row["title"]." Text: ".$row["text"].'<br>';
- }
- ?>
Add Comment
Please, Sign In to add comment