The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
MySQL "ORDER BY" Query
[sql]SELECT title, pagecount, createdat, userfriendlyname FROM $WT_DB_TemplateTable
WHERE category = 7 ORDER BY createdat DESC[/sql] Right now, my output is in order of creation (fairly sure it is backwards too), however I would like to change "ORDER BY createdat" to make it so that it orders it in alphabetical order. How would I do this? |
#2
|
||||
|
||||
ORDER BY title.
|
#3
|
|||
|
|||
Thanks.
Now, how would I reverse the order of them? right now they're going from Z to A. |
#4
|
||||
|
||||
Sorry.
ORDER BY title ASC |
#5
|
|||
|
|||
Perfect.
Thanks so much. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|