I am developing a website that is a kind of game. User progress is stored in the MySQL database.
I want to do this if the table is saved while maintaining the column (ID) and moving the column where the progress has a data type text. When the user starts, progress is set (for example, "0"). If he goes to level 1, progress is set to "0 # 1", the second level makes him "0 # 1 # 2". The order of the levels is free, and I want to keep it. So progress can be "0 # 4 # 2 # 15", etc.
Is this a good way to do this? I have no experience with SQL, and I do not want to do something incredibly stupid. I read so confusing information about tables, foreign keys, and something else ...
I want to thank you for reading this, and I look forward to hearing.
Ryan
source
share