0

It is possible to make an array using Session? Then Get the Values each element in the session array.

im bad with Php. HAHAHAH

6th Mar 2017, 2:23 PM
Esyot Razo
Esyot Razo - avatar
6 odpowiedzi
0
Do you mean you are trying to stock variables from session inside an array?
6th Mar 2017, 2:47 PM
Geoffrey L
Geoffrey L - avatar
0
yes! i want to get each element. Im trying but it sucks
6th Mar 2017, 2:48 PM
Esyot Razo
Esyot Razo - avatar
0
ok. Maybe you didn't realize but $_SESSION is actually an array so you don't need to remake one. Try: var_dump($_SESSION);
6th Mar 2017, 2:50 PM
Geoffrey L
Geoffrey L - avatar
0
okay. ill try
6th Mar 2017, 2:51 PM
Esyot Razo
Esyot Razo - avatar
0
while($row = $result->fetch_assoc()){ $_SESSION["UserName"] = $row["UserName"]; } how will you get the exact element in array SESSION.
6th Mar 2017, 3:09 PM
Esyot Razo
Esyot Razo - avatar
0
Can you show a small piece of the var dump result, without sensitive infos for sure?
6th Mar 2017, 3:47 PM
Geoffrey L
Geoffrey L - avatar