- - Readme First! Read and follow the rules, otherwise your posts will be closed
There are currently, 259 guest(s) and 0 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Edited news on top [ ]
Joined: Feb 06, 2005
Fri Oct 06, 2006 5:13 am
Hey, I want the edited news stories on my website to be displayed on top of the news list, if the news have been edited.
I have made up a way to do this in my mind, but i can't figure out how to do it in the codings.. My php skills are OK.
1. Alter the nuke_stories table by adding a column "edited". If a story has been edited either yes/1 or no/0 will be sat as a value in the field.
2. Sort the news by editen, then by id, but this is something i don't know how to do. I know its easy to sort by either eidted or id, but i don't know how to sort by one column, then sort by another.
Joined: Aug 17, 2003
Tue Oct 24, 2006 6:03 pm
cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum