I have run a query from my ODBC connection and successfully displayed the records in the database. However, according to each record produced, how can I; through the use of a submit button; add the product name and price etc to the session and call them results on another page. I know that this process can be acomplished by this...
$name = $POST['name'];
$SESSION['name'] = $name;
echo $_SESSION['name'];
...which grabs the data inputted through a form, but how do I do a similar sort of thing but with the individual results of my query.
Or would this be something to do with arrays? if so please advise on a way to declare and (through a submit button), add the query results to the array and aquire them later.
thanks.