connect_error) { die("Connection failed: " . $conn->connect_error); } $quersy = $conn->query("SELECT * FROM posts ORDER BY id DESC"); // $conn->query($query) $conn->query("SELECT * FROM users"); print "
"; while($rows = mysqli_fetch_assoc($quersy)) { print ""; } print "
".htmlspecialchars($rows['title'])." commentsPosted by: ".htmlspecialchars($rows['poster'])."
"; ?>