Welcome Guest, Not a member yet? Register   Sign In
Query from view
#7

[eluser]Colin Williams[/eluser]
1. Use a JOIN query to get all the data you need.
2. In the model after the query, iterate over the result, grouping multiple values. You should end up with a multidimensional array of posts, where each post has a user property that is an object containing the user data
3. Pass this on to the view

This is a basic workflow. If you don't know how joins work, or how to manipulate arrays, I would suggest you go back to square one and do some reading on each of those topics.


Messages In This Thread
Query from view - by El Forum - 01-15-2010, 04:58 PM
Query from view - by El Forum - 01-15-2010, 05:06 PM
Query from view - by El Forum - 01-15-2010, 05:07 PM
Query from view - by El Forum - 01-15-2010, 05:09 PM
Query from view - by El Forum - 01-15-2010, 05:10 PM
Query from view - by El Forum - 01-15-2010, 05:12 PM
Query from view - by El Forum - 01-15-2010, 06:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB