а для более старых версий невозможно выполнить то, что я хочу?
SELECT *
FROM services
JOIN (
SELECT *,
@row_number := CASE WHEN service_id = @service_id
THEN @row_number + 1
ELSE 1
END rownumber,
@service_id := service_id
FROM orders
CROSS JOIN (SELECT @service_id := 0, @row_number := 0) init_vars
ORDER BY service_id, id DESC
) enumerated_orders USING (service_id)
WHERE enumerated_orders.rownumber <= services.service_limit
$rsMyCredits = $objDBCD14->queryUniqueObject(
"SELECT Balance FROM tbl_users WHERE UserId = '" . $rs->UserId . "' FOR UPDATE"
);
let ids = [...document.querySelectorAll('#myTable tr')].map(x => x.id);
// или
let ids = $('#myTable tr').map(function () {return this.id;})).get();
echo '<tr><td nowrap="nowrap" data-sort="2020-04-01">';
echo $date;
echo '</td><td>';
<?php
$date = new DateTime();
$date->setTimestamp(1644537600000/1000);
echo $date->format('Y-m-d') . "\n";
$file = '/g/g/g/g/';
if (!@unlink($file) && file_exists($file)) {
throw new \RuntimeException('Failed to delete file ' . $file);
}
Warning: unlink(/g/g/g/g/): No such file or directory in