Hello,
When i use:
$_SESSION["AllMonClasses"] = $rsClassesCopy->Results;
to create a Session array; and then use:
var_dump($_SESSION["AllMonClasses"]);
I get the complete listing of data from the orignal database query.
But when I try to access some specific data by for example trying:
var_dump($_SESSION["AllMonClasses"]["ClassID"]);
I get "Null"
And then when I try:
foreach ($_SESSION['AllMonClasses'] as $key => $value) {
echo $key . " " . $value . "<br /><br />";
}
I get only:
"0 Array
1 Array
2 Array
....
etc.
I do not get either the keys or the values.
My preference would be a "while loop" that also allowed me to access the individual Sessio Array values through the associative Session Array keys.
I am sorry for the inconvenience. Everything I read says:
$_SESSION["AllMonClasses"]["ClassID"]
should work to access that data, but that does not seem to be the case for me.
How can I access in a controllable way the items in that Session Array?
Thank you.
KAB