dongbamage
Programmer
Hi guys,
heres my problem:
I have a shop system that must (for needs of payment) insert a seperate row in my orders table for each product and the quantity of that particular product ordered. however a cart can contain different items with differing quantities.
So I have an order table that records :
OrderID an autonumber
CustomerID
StockID
AmountOrdered
TotalCost
VAT
OrderDate
Dispatched
PaymentType
IP
Now what I want to do is to add another column (OrdNum) which is unique for the cart order but will be the same for each of the items in the cart.
What i'd like to know is how to insert a OrdNum that is not already in the database so (unique in that sense) but that will be the same for each of the cart items...
If I haven't made that clear please let me know and I'll have another go
Can anyone help me with this please?
Thanks again guys, I've learnt so much from visiting here its a gereat site!
heres my problem:
I have a shop system that must (for needs of payment) insert a seperate row in my orders table for each product and the quantity of that particular product ordered. however a cart can contain different items with differing quantities.
So I have an order table that records :
OrderID an autonumber
CustomerID
StockID
AmountOrdered
TotalCost
VAT
OrderDate
Dispatched
PaymentType
IP
Now what I want to do is to add another column (OrdNum) which is unique for the cart order but will be the same for each of the items in the cart.
What i'd like to know is how to insert a OrdNum that is not already in the database so (unique in that sense) but that will be the same for each of the cart items...
If I haven't made that clear please let me know and I'll have another go
Can anyone help me with this please?
Thanks again guys, I've learnt so much from visiting here its a gereat site!