php-mysql sorting question.
php-mysql sorting question.
Out of context: Reply #7
- Started
- Last post
- 8 Responses
- TResudek0
So you are saying you need to be able to sort items by a field? For example: You have three articles. You want to add a new article and you want it to be displayed 2nd in the list.
If that is the case, you need only add one field (ie. "priority") and let the user determine where each item goes. Then sort by that field when you make your query.
Is that helpful?