quick MySQL question
quick MySQL question
Out of context: Reply #3
- Started
- Last post
- 7 Responses
- mike0
you need the name of the colum you wish to sort by decending...
"SELECT * FROM news WHERE type=$type ORDER BY type DESC"
also, if type is a non-intger value you need to put single quotes around it... like...
"SELECT * FROM news WHERE type='$type' ORDER BY type DESC"