I still cannot get this to work and I really need some help understanding where i am going wrong.
I need products to repeat in repeating table I setup. Have recordset created to display products by id.
This table should only display items viewed on detail page.
Trying to use sessions to achieve this.
I am not able to store product ids ,which has been created by user when they click link which holds URL parameter, and use this to display all products that has been viewed.
This is code I have currently on detail page:
<?php
if (!session_id()) session_start();
if(!isset($_SESSION["numberone"])) {//if session 'name' hasn't been set
$_SESSION["numberone"] = $_GET["recordID"]; //set session 'name' to a value
}else{
$_SESSION["numberone"] = $_GET["recordID"];
}
if(!isset($_SESSION["numbertwo"])) {
$_SESSION["numbertwo"] = $_GET["recordID"];
}else{
$_SESSION["numbertwo"] = $_GET["recordID"];
}
$rvitem = $_GET["recordID"];//allows me to echo product id in body
?>