ДОДАТОК a
Index.php
<?php
error_reporting(0);
define('myeshop', true);
include("include/db_connect.php");
include("functions/functions.php");
session_start();
include("include/auth_cookie.php");
$sorting = $_GET["sort"];
switch ($sorting)
{
case 'price-asc';
$sorting = 'price ASC';
$sort_name = 'От дешевых к дорогим';
break;
case 'price-desc';
$sorting = 'price DESC';
$sort_name = 'От дорогих к дешевым';
break;
case 'popular';
$sorting = 'count DESC';
$sort_name = 'Популярное';
break;
case 'news';
$sorting = 'datetime DESC';
$sort_name = 'Новинки';
break;
case 'brand';
$sorting = 'brand';
$sort_name = 'Новинки';
break;