Forum Moderators: coopster

Message Too Old, No Replies

PHP sorting by value

         

tr8er8

4:35 am on Feb 15, 2008 (gmt 0)

10+ Year Member



Is there a way to sort the value in a column in a table? Like I have 2 values that will be in each column, news and announcements. Is there a way to like show the announcements on one section of a page, and the news on another section? Right now its just showing all.

phparion

4:58 am on Feb 15, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



you got to add a column in table, if not already, to distinguish news and announcements and then use sql

select * from tablename where genre='news'

you should have a pointer info in the table to separate news and announcements only then you can achieve your goal

tr8er8

5:00 am on Feb 15, 2008 (gmt 0)

10+ Year Member



Ok sweet I just needed that genre thing or w/e