我非常困惑,我有一个简单的请求,它不起作用......
'SELECT * FROM articles WHERE status = "2" ORDER BY time_added DESC LIMIT $start, $num'
$ start和$ num用于分页
如果我这样做,它会起作用:
'SELECT * FROM articles WHERE status = "2"'
或:
'SELECT * FROM articles ORDER BY time_added DESC LIMIT $start, $num'
我知道,这太简单了,无法忍受,但我被困住了。请帮忙。 谢谢你的时间。