That is a bad practice. You should not store values like that.
You need a table for your users and another table for the colors, related by the userid.
The other option is to use a json field type to store the values in the database, as explained here: Inserting Tagify Values into a Database
1 Like