how I can use array in cell related with another table in database like ?
Users table:
Name | languages_id
Anas | 1,2,3
Languages table:
id | language
1 | English
2 | Arabic
it’s work or not ?! and do you know what can I use in yii to do this ?
Don’t do this.
Don’t store mutiple items as comma separated column, it is really bad.
You should keep your tables normalized, by creating a new table
UsersLanguagesas a many to many table between theUSERSandLanguagestable. Somrthing like this:Users:UserId,UserName,Languages:LanguageId,LanguageName,UserLanguages:UserIdforeign key referencesUsers(UserId),LanguageIdforeign kery referencesLanguages(LanguageId).