CodeIgniter Forums
view of products - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: view of products (/showthread.php?tid=12213)



view of products - El Forum - 10-10-2008

[eluser]dimis[/eluser]
I have a master table at mysql -Product Types and the detail table Products.
I want to print at a page for each type all the products as
Quote:Type 1
product 1
product 2 etc
Type 2
product 1
product 2 etc
I have a view that returns the products and the type that it has (1 product-1 type, 1 type-many products), so I can have an array of the products.
My problem is the way I make a loop that will produce the above "view".
Any idea?
Dimis