For some reason I can't figure out the following. I am using mysql and php.
I have the following 2 tables
tl_topic //a topic
topic_id //id of the topic
title //the title of the topic
comment //the body of the topic
user_id //the user who posted the topic
tl_topic_commen t //comments on a topic
topic_id
comment_id
both topic_id and comment_id are exact date/times that it was added.
I want to get a list of topics ordered by latest comment date (comment_id), and if there are no comments on a particular topic I need to use the topic_id to order it
Any help would be appreciated
Thanks
I have the following 2 tables
tl_topic //a topic
topic_id //id of the topic
title //the title of the topic
comment //the body of the topic
user_id //the user who posted the topic
tl_topic_commen t //comments on a topic
topic_id
comment_id
both topic_id and comment_id are exact date/times that it was added.
I want to get a list of topics ordered by latest comment date (comment_id), and if there are no comments on a particular topic I need to use the topic_id to order it
Any help would be appreciated
Thanks
Comment