Welcome Guest, Not a member yet? Register   Sign In
Simple SQL question from a beginner...
#3

[eluser]designcloud[/eluser]
I used this SQL...

Code:
SELECT p . * , c . *
FROM `profile` p
INNER JOIN `category_line` cl ON p.`profile_id` = cl.`profile_id`
INNER JOIN `category` c ON c.`category_id` = cl.`category_id`
ORDER BY p.`profile_id`
LIMIT 0 , 30

That worked. But now how do I now display in this format with the controller and view?

----------------------------
profile name
category name 1, category name 2, category name 3
----------------------------
profile name 2
category name 1, category name 2, category name 3
----------------------------
profile name 3
category name 3, category name 4, category name 7
----------------------------

etc.. any ideas? Im a beginner.


Messages In This Thread
Simple SQL question from a beginner... - by El Forum - 01-12-2010, 05:22 PM
Simple SQL question from a beginner... - by El Forum - 01-12-2010, 07:11 PM
Simple SQL question from a beginner... - by El Forum - 01-16-2010, 09:16 AM
Simple SQL question from a beginner... - by El Forum - 01-16-2010, 06:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB