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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.