Hello i try to make something like my query:
result = mysql_query('SELECT subitems.ItemID, subitems.Parent, subitems.Data, items.ID FROM subitems INNER JOIN items ON items.ID = subitems.ItemID WHERE subitems.ItemID = \''. $item['ID'] .'\' GROUP BY subitems.Parent ASC, subitems.Data ASC');
Array (
[ItemID] => 1
(
[Parent] => 1
(
[Data] => 1
[Data] => 2
[Data] => 3
)
)
[ItemID] => 1
(
[Parent] => 2
(
[Data] => 1
[Data] => 2
[Data] => 3
)
)
)
i try to make a foreach for see each parent of itemID and display each items by parent, but not rewrite the name of parent everytime. thx