Hi, I'm trying to make an addressbook and as a feature I want to make Groups and store certain contacts within a group.

Since I don't want to have static columns in my database for predefined groups how can I make a column `groups` and have the user add their own groups and then query the database to show the groups as they are added?

I was thinking of storing an array and just append to the array every time the user adds a new group.

But then if i do this, how will I be able cross reference what contact belongs to what group?

Just add a new column 'group' and save the group type in there
This will be much easier... Think so

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.