Hi... can anyone help me put together the SQL code for this?
Ok so I have 2 tables
TOPIC and USER
important elements in TOPIC are
(PRIMARY) ID = id of topic
pID = parent forum
lastUID = users id of last user to post in topic
USER looks like
(PRIMARY) ID = id of user
USERNAME = users name
OK so I am trying to grab all topics from TOPIC which have a certain parent id (WHERE TOPIC.pID = 3 or whatever) but also match each returned row to the USER table to get the users name for the last post in that topic (match TOPIC.lastUID with USER.ID)
can I do this all in one sql statement?
Any help much appreciated!
Thanks! 🙂