如何添加 order by 'id' DESC
到此代码?
$querya = mysql_query("select * FROM {$table_prefix} where act='1' and status='0' LIMIT $start_at,$entries_per_page" );
如何添加 order by 'id' DESC
到此代码?
$querya = mysql_query("select * FROM {$table_prefix} where act='1' and status='0' LIMIT $start_at,$entries_per_page" );
尝试这样做。使用id
(反引号)
$querya = mysql_query("select * FROM {$table_prefix} where act='1' and status='0'
order by `id`
LIMIT $start_at,$entries_per_page" );
它看起来只是一个真正的问题......我认为答案就是这个。
$querya = mysql_query("select * FROM {$table_prefix} where act='1' and status='0' ORDER BY 'id' DESC LIMIT $start_at,$entries_per_page" );
尝试这个
$querya = mysql_query("select * FROM {$table_prefix} where act='1' and status='0' ORDER BY 'id' DESC LIMIT $start_at,$entries_per_page" );