I am making a system where the user can select game characters he has (characters stored in another table). If he has 2 characters, he should see two div's with the data of characters in that div - etc.
I know how to make the divs, but how can I load that specific character data he clicked to the users SESSION? For example he pressed character number 2, how do I know he selected the 2nd character he has in the database?
The problem is that every user might have different amount of divs, how do I know which data should I load to the session and continue with the code. I hope you understand my request. Do I somehow assign a number to each div?