How do I get the latest 10 posts out to the forum for a table on my web sites frontpage? I have tried with this SQL statement:
select FORUM_TOPICS.t_replies, FORUM_TOPICS.topic_id, FORUM_TOPICS.forum_id, FORUM_TOPICS.cat_id, FORUM_TOPICS.t_subject, FORUM_REPLY.r_message from FORUM_TOPICS left join FORUM_REPLY on FORUM_TOPICS.topic_id = FORUM_REPLY.topic_id where FORUM_TOPICS.FORUM_ID<>10 order by FORUM_TOPICS.t_date desc, FORUM_REPLY.r_date desc
But this does not give me the right records, and it does not sort the records either.
There must be many that have done this, so perhaps I could get a SQL statement that works from any of you?
Thanks
Regards
Krauw