Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
$context = stream_context_create( array( "http" => array( "method" => "POST" )) ); $data = file_get_contents("url", false, $context); $data = json_decode($data);
mysqli_set_charset($connection, "utf8");
select fields,... from ( select fields,... from tablename order by field desc limit 30 ) as subquery order by field limit 30
( select fields,... from tablename order by field desc limit 30 ) order by field limit 30
select * from ( select fields,... from tablename order by field desc limit 30 ) as subquery order by field
SELECT * FROM ( SELECT * FROM `some_table` ORDER BY `id` DESC LIMIT 30 ) as t ORDER BY `t`.`id` ASC