Lassie Posted July 4, 2007 Share Posted July 4, 2007 I am trying to update an array which holds a list of property ids as a browse list.The list is then viewed. I pass the required property_id as a Get and attempt to add to a session array. I get an undefined variable error. Can anyone help please. session_start(); @ $property_id = $_GET['property_id']; echo $property_id; if($property_id) { //new item selected if(!isset($_SESSION['browse'])) { $_SESSION['browse'] = array(); } $_SESSION['browse']='$product_id'; } if($_SESSION['browse']&&array_count_values($_SESSION['browse'])) display_browse($_SESSION['browse']); else { echo '<p>There are no properties in your browse list</p>'; echo '<hr />'; } 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.