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! Quote 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'] Quote 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! Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.