![]() |
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? |
ORDER BY title.
|
Thanks.
Now, how would I reverse the order of them? right now they're going from Z to A. |
Sorry. :)
ORDER BY title ASC |
Perfect.
Thanks so much. |
All times are GMT. The time now is 04:35 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|