Is it possible to store more than one value and query the database and assign each value as a separate entity?
For example, I have a database with a column wallpaper can I store say this into it.
wall_1.png, wall_2.png, wall_3.png
and then query the database and pull out 3 different variables that hold the wallpaper name.
so I’d have $defaultWall = "wall_1.png" $wall2 = "wall_2.png" $wall3 = "wall_3.png" <– being pulled from the database.
also I have a table called settings, the user can set all their settings here. One column is for their wallpaper preference for their profile. I would like for them to have a series of uploaded wallpapers on hand if they choose to change later on. So by doing this I wanted to store an array of wallpaper urls into the db and have a tiny image preview gallery pull each wallpaper for processing and resizing from the database.
Yes, you can. But more than one value in table field doesn’t satisfy to the Normalization Forms.
Try to create one table with wallpapers for this row.