Hi,
I've recently become really stuck trying to program a shopping cart
for a site i'm designing.
I have 2 Tables
OrderItems
Orders
Which need to be updated during the update process, the data that is
to be updated is stored in an array.
As i understand it, i need to update the the Orders Table, get an
OrderID (which i have set to an auto increment number) then update the
OrderItems with the following info
OrderID
ProductID
ProductQty
CustomerID
I've done this using 3 fairly messy sql statements and feel their must
be a better way to do this using some sort of relational database?
I'm really stuck here, and would appreciate any help that anyone could
offer.
Kind Regards,
Ian
I've recently become really stuck trying to program a shopping cart
for a site i'm designing.
I have 2 Tables
OrderItems
Orders
Which need to be updated during the update process, the data that is
to be updated is stored in an array.
As i understand it, i need to update the the Orders Table, get an
OrderID (which i have set to an auto increment number) then update the
OrderItems with the following info
OrderID
ProductID
ProductQty
CustomerID
I've done this using 3 fairly messy sql statements and feel their must
be a better way to do this using some sort of relational database?
I'm really stuck here, and would appreciate any help that anyone could
offer.
Kind Regards,
Ian
Comment