I screwed up.
That seems to work, but I changed something else and I cant figure out what I did. The same OrderID is being rewritten each time, and now there is a NULL value in the OrderReferenceID and OrderTotal. Those fields were working before I started screwing around. I think I deleted the session variable for OrderID but I added it back in manually. Aghhh.
I am using Paypal if that matters and the orders are going through... it just isnt adding a new ORder to the Orders table... it is updating the same one, and as I said, setting those 2 fields to NULL.