Working in phpMyAdmin for now:
order table strucure:
OrderID int(11) auto_increment
CustomerID varchar(50)
BillAddr varchar(200
As stated in the manual:
LAST_INSERT_ID() (with no argument) returns a BIGINT (64-bit) value representing the first automatically generated value that was set for an
AUTO_INCREMENTcolumn by the most recently executed INSERT statement to affect such a column. For example, after inserting a row that generates anAUTO_INCREMENTvalue, you can get the value like this:mysql> SELECT LAST_INSERT_ID(); -> 195