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? 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] Link to comment https://forums.phpfreaks.com/topic/17316-session-array-problem/#findComment-73549 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.