Welcome Guest, Not a member yet? Register   Sign In
Users and Multiple Categories
#2

[eluser]Jondolar[/eluser]
Your result set would look something like this:
1 john smith plumbing
1 john smith roofing
2 tom brown roofing

Therefore, you need to modify your view to have an inner loop when the user_id is the same as the previous one (hint, save the user_id to a temp variable and then compare it on the next loop). Your inner loop will display the categories and the outer loop will display the name. The inner loop will only break when the user_id does not match the previous user id.


Messages In This Thread
Users and Multiple Categories - by El Forum - 08-21-2009, 11:30 AM
Users and Multiple Categories - by El Forum - 08-21-2009, 01:47 PM
Users and Multiple Categories - by El Forum - 08-21-2009, 02:36 PM
Users and Multiple Categories - by El Forum - 08-21-2009, 03:46 PM
Users and Multiple Categories - by El Forum - 08-21-2009, 04:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB