There is a table in which the alias field by which the output is sorted. It is necessary to display entries on a specific alias in three places in order not to make a request three times, how to make one?
$query = "SELECT * FROM table"; $res = mysqli_query($connection, $query); $array=array(); while($row = mysqli_fetch_assoc($res)){ $array[$row['alias']][] = $row; } and then I do not know how to display entries by alias
$arrayalready has all the records broken byalias, it remains to output them:foreach ($array[$YOUR_ALIAS] as $row) {...}. Before the loop, checking for the presence of the$YOUR_ALIAS- BOPOH