ibnclaudius Posted July 12, 2012 Share Posted July 12, 2012 First I get all posts, then, with a foreach, I get the comments. Is it possible to get everything with only one query? Quote Link to comment Share on other sites More sharing options...
Barand Posted July 12, 2012 Share Posted July 12, 2012 If your structure is suitable, use FROM posts LEFT JOIN comments ON ... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.