I should have said that I did try that before and It keep showing up like:
Category 1
------ Item 1
------ Item 2
Category 2
------ Item 1
------ Item 2
------ Item 4
------ Item 5
Category 3
------ Item 4
------ Item 5
------ Item 6
I'm thinking it might be eaiser to add the items to the datastore and using a foreach() to get them.
Well using foreach()'s didn't help much. This is getting on my nerves and I can't figure out why the hell the items are showing in other categorys even when I add a where clause and a if statment. (WHERE catid = $var1[id]) and (if ($var2['catid'] == $var1['id'])). AHHHHH
/me screams!!!!!
|