Hello i have a table comments and i need to take the last three comments but another way like this:
8
9
10
My code show this:
10
9
8
Code:
$sql_query = $connection->query("SELECT * FROM comments WHERE `post_id` = '38' ORDER BY `id` DESC LIMIT 3");
while ($ff = $sql_query->fetch_array(MYSQLI_ASSOC)) {
echo $ff["text"]. "</br>";
}
Thanks in advance !
