There is a sign news . there are columns id , category , text
$res = mysqli_query($link, "SELECT * FROM `news` GROUP BY `category` ORDER BY `category` DESC"); while($row = mysqli_fetch_assoc($res){ echo $row['category']; echo $row['text']; } category is displayed, text is displayed, but if there is more than one in this category, the query displays only one text .
What am I doing wrong?
I need to display the category and text all articles that correspond to this category, without duplicating the category.