Thanks, but it won't work for a number of reasons. I'm actually sorting my SQL query on price, so that display goes cheapest->more expensive and am looking for a type of 'comparison shopping' type thing, to highlight the cheapest vendor. I could sort on name, but I have implimented a 'show items < $150' type of thing. I need to have a sort of flag in the table to show an item is in a family, or else some of the identical items, eg >$150 would not get grouped.
Also, some items have identical names, but are from different manufacturers, so are not the same.
I am willing to impliment more than 1 table to incorporate this, but I don't see what benefits it would have. Perhaps a 2nd table listing all the families, and during the first while loop, check the family table to see if the item is present. If it is, then go fetch all the other family members. But then how do I skip those fetched members when they come up in the first while loop?
My items table is basically:
id
name
features
description
manufacturer
vendor
url
price
family
where at the moment, family contains the id's of all the other idenical products, but from different vendors. I think my easiest way out is to have vendor, url and price fields use some form of comma-delimited array which will store all the family members in one table entry, but I would really like to keep the families in separate separate table entries if possible.