sKunKbad Posted May 4, 2007 Share Posted May 4, 2007 I need help with reassigning the value of $_SESSION['OfferListingId'][0], but what I have so far isn't working. $Choice = $_GET['Choice'] $_SESSION['OfferListingId'][0] = $SESSION['OfferListingId']["$Choice"]; // line 106 Parse error: syntax error, unexpected T_VARIABLE in /home/content/mysite/html/abc.php5 on line 106 Please help! Link to comment https://forums.phpfreaks.com/topic/50037-selecting-a-session-array-value/ Share on other sites More sharing options...
papaface Posted May 4, 2007 Share Posted May 4, 2007 Dont think you can do this, but you need the ; at the end of $Choice = $_GET['Choice'] Link to comment https://forums.phpfreaks.com/topic/50037-selecting-a-session-array-value/#findComment-245614 Share on other sites More sharing options...
sKunKbad Posted May 4, 2007 Author Share Posted May 4, 2007 OK, yes I forgot the semicolon, and also the underscore in $SESSION. I fixed those two things, and the script works as intended. Thanks! Link to comment https://forums.phpfreaks.com/topic/50037-selecting-a-session-array-value/#findComment-245630 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.