I've seen some postings explaining how to handle arrays in a session variables. I took a different approach and since I'm kind of new to this, can somebody suggest if this code might break somewhere...(I'm trying to register two arrays with values of the result set):
$i=0;
while($row = mysql_fetch_object($query))
{
$Key[$i] = $row->Key;
$Name[$i] = $row->Name;
$i++;
}
if(!session_is_registered('Key'))
session_register("Key");
if(!session_is_registered('Name'))
session_register("Name");
Thanks!