Fenhopi Posted November 1, 2010 Share Posted November 1, 2010 Hi, I'm trying to write a query that retrieves the comments from one table where "touser=$username" and retrieve statuses from another table where byuser=$username, and I want to sort it all by date posted. How would I go about doing that? I'm used to writing normal single table queries, but retrieving from multiple tables is new to me. Thank you for your help in advance. Link to comment https://forums.phpfreaks.com/topic/217440-writing-one-query-that-retrieves-from-different-tables/ Share on other sites More sharing options...
Gem Posted November 1, 2010 Share Posted November 1, 2010 look up joins mate - I'm not very good at it, but thats what you are after Link to comment https://forums.phpfreaks.com/topic/217440-writing-one-query-that-retrieves-from-different-tables/#findComment-1128924 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.