I am pulling data from database and would like to save it into session variables. I would like to name the keys the same that my table cells are named. So for example:
I have a cell named "EMAIL", and I would like to get $_SESSION["EMAIL"]
I already have the data from database saved in an array ($data), which has array keys named after the cells, but I would like to move that data to SESSION array, with same keys...
How can I do this dynamically?