Hi all, quick question (hopefully):
I have 2 tables holding information for a forum.
The first one is a table of users with:
id
first
last
address
phone#
email
username
userpass
the second table holds all of the forum posts:
id
userid
subject
body
topicid
posted(date)
subtopicid
forum
Now, when displaying the forum in question, I am using the forum name from the posts table, then using the userid to grab who wrote the post, the subject line, and the posted date.
However I want to show the last date a reply was posted to a certain topic. I can already select the user who initiated the thread, and the date, name, etc..., but the one weird piece of info I want to retrieve is the last date something was posted on that thread.
Is there a way to query the database once to retrieve all the info that I want?