markbett Posted September 17, 2006 Share Posted September 17, 2006 im trying the code[code] while($i<=$guests){ $guest_array[$i] = array(${guest_name.$i}, ${guest_email.$i}); $i++; } $_SESSION[guest_array] = $guest_array; // we make the array a seesion variable echo $_SESSION[guest_array][1][0]; [/code]and its not working... just wondering if it is because a session variable cannot be an array Link to comment https://forums.phpfreaks.com/topic/21036-can-an-array-be-a-session-variable/ Share on other sites More sharing options...
markbett Posted September 17, 2006 Author Share Posted September 17, 2006 doh im stupid... i forget to reset my counter so nothing was ever put in my array Link to comment https://forums.phpfreaks.com/topic/21036-can-an-array-be-a-session-variable/#findComment-93376 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.