03-23-2016, 11:53 AM
Hi! Lets say I have a table with data, for example
Table - Users
fields:
1)first_name
2)last_name
3)birthday
4)email
5)phone
And lets say every user can set to show in his profile only 3 of that fields
first user checked 1),3),4)
second user checked 2),3),5)
So what would be the best approach to save sets of fields for every user?
Something like personal account setting to which fields to show on a site.
How i see that, just save data like string with fields name which must be show for every user
for example first_name|birthday|phone or email|phone ... and so on
Any suggestions?
Thanks!
Table - Users
fields:
1)first_name
2)last_name
3)birthday
4)email
5)phone
And lets say every user can set to show in his profile only 3 of that fields
first user checked 1),3),4)
second user checked 2),3),5)
So what would be the best approach to save sets of fields for every user?
Something like personal account setting to which fields to show on a site.
How i see that, just save data like string with fields name which must be show for every user
for example first_name|birthday|phone or email|phone ... and so on
Any suggestions?
Thanks!