This is the second issue I am having with the PHP I am working on:
For the shopping basket of the website I have an session array called list. Which has book details added in, Now the complicated bit is getting the array variables and put them back into a different table.
User Adds products to shopping list Shopping list to checkout (List to order table)
Now this is the addtolist.php which adds the user's choices to the "shopping list" array. What I need to do next is somehow figure out a way to get the bookarray variables into an order table. Now I know the SQL functions for it:
$query = "INSERT INTO orderhistory VALUES ('".$ISBN."','".$bookname."','".$author."','".$price."')";