$sql_1 = "SELECT * FROM `video` ORDER BY `id` DESC LIMIT 12";
$std = $pdo->query($sql_1);
$result = $std->fetchAll();
echo json_encode($result);
$sql_1 = "SELECT * FROM `video` ORDER BY `id` DESC LIMIT 15";
$std = $pdo->query($sql_1, PDO::FETCH_ASSOC);
echo json_encode($std->fetch(PDO::FETCH_ASSOC));
?
fshp
Обновил описание задачи, добавил объявления UI и Calculator.