OK, I've gotten a little further in pulling the data from the SESSION variable.
Here is the code I used in a BeforeShowList event:
[codebox]$query = "insert into _order_summary (customer_id, email, phone, firstname, lastname, address, city, state, zip) values ($_SESSION["customer_id"], $_SESSION["email"], $_SESSION["phone"], $_SESSION["firstname"], $_SESSION["lastname"], $_SESSION["address"], $_SESSION["city"], $_SESSION["state"], $_SESSION["zip"])";
$result = mysqli_query($dbc, $query);
if (mysqli_affected_rows($dbc) == 1) {
//insert order ID
$order_no = mysqli_insert_id($dbc);
//insert order detail records
$query = "insert into _order_details (order_no, customer_id, item_key, item_id, product_name, details, quantity, price) values ";
for each ($_SESSION['len] as $orderdetail_id => $value) {
$query .= "($order_no, $orderdetail_id, $_SESSION["customer_id"], {$value['item_key']}, {$value['item_id']}, {$value['product_name']}, {$value['details']}, {$value['quantity']}, {$value['price']}), ";
}
$query = substr($query, 0, -2); //Chop off last two characters.
$result = mysqli_query($dbc, $query);
if (mysqli_affected_rows($dbc) == count($_SESSION['len'])) {
mysqli_commit($dbc);
mysqli_close($dbc);
//Clear the session.
unset($_SESSION['len']);
} [/codebox]
Any comments or suggestions still welcome. I would still like confirmation of this syntax in PHPRunner however.
Also, FYI, I'm using PHPRunner 4.0 on this project (started this project a few months before 4.1 came out and didn't want to switch over in the middle of this project).
Thanks,
Janet