Hello, there is a normal code
$result = mysql_query("SELECT * FORM catalog order by id"); foreach($result as $item) { echo $item['id']; echo $item['name']; }
Sorted by Id. How to make sorting what first there would be those points in which id is equal 5,6,7 and then all the others?