mysql request order by where -


im confused, have simple request doesnt work...

'select * articles status = "2" order time_added desc limit $start, $num' 

$start , $num pagination

it works if do:

 'select * articles status = "2"' 

or:

 'select * articles order time_added desc limit $start, $num' 

i know, simple stucked with, i'm stucked. please, help. thank time.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -