jamesp0tter
Programmer
well, i built a forum that works with one table.. i've got (almost) everything working out now, i only need to get the threads ordered by their last post.
my forum table:
id | id_topic | id_thread | id_msg | type | date | more that doesn't matter
type can be 'thread', 'topic' or 'msg'
data is 'd-m-Y-H-i' (so that i can explode the '-'s and work like i want with it)
imagine i have thread 2 under topic 1, that'll be:
nn | 1 | 2 | 0 | 'thread' | 12-03-2003-15-30
and a message inside that topic is:
nn | 1 | 2 | 9 | 'msg' | 13-03-2003-14-45 |
question:
i need to get the threads from topic 1 sorted so that they apear ordered by their last entered message..
how ?
tkx in advance for your help
my forum table:
id | id_topic | id_thread | id_msg | type | date | more that doesn't matter
type can be 'thread', 'topic' or 'msg'
data is 'd-m-Y-H-i' (so that i can explode the '-'s and work like i want with it)
imagine i have thread 2 under topic 1, that'll be:
nn | 1 | 2 | 0 | 'thread' | 12-03-2003-15-30
and a message inside that topic is:
nn | 1 | 2 | 9 | 'msg' | 13-03-2003-14-45 |
question:
i need to get the threads from topic 1 sorted so that they apear ordered by their last entered message..
how ?
tkx in advance for your help