Birdman203 Posted August 12, 2006 Share Posted August 12, 2006 [code]$count_session = count($_SESSION['topics']);$id = $_GET['id'];$array_session = array( 'id' => $id);$array_session2[$count_session] = $array_session;$set_session = $_SESSION['topics'][$array_session2];[/code]how come this doesnt work? or am i doin somethin wrong? Quote Link to comment https://forums.phpfreaks.com/topic/17316-session-array-problem/ Share on other sites More sharing options...
hostfreak Posted August 12, 2006 Share Posted August 12, 2006 Try:[code]$count_session = count($_SESSION['topics']);$id = $_GET['id'];$array_session = array( 'id' => '$id');$array_session = $array_session2[$count_session];$set_session = $_SESSION['topics'][$array_session2];[/code] Quote Link to comment https://forums.phpfreaks.com/topic/17316-session-array-problem/#findComment-73549 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.