setInterval(function() {
// весь код тут будет выполняться каждые 1000 мс ( 1 сек. )
}, 1000 );
SELECT good, amount * unit_price as sum
FROM Payments
ORDER BY payment_id, sum DESC;
SELECT good, amount * unit_price as sum
FROM Payments
ORDER BY payment_id;
"SELECT `name`, `img`, `url` FROM `category` WHERE `id` = '" . $category_id . '" LIMIT 1";