I have two tables in my databse
Table # 1 Item | PriceK | PriceM |Price H | Price T
This is populated with items and four prices, these prices are based on a group that the user belongs to(k,m,h, or t)
Table #2 Username | Group | Dec3 | Dec4 | Dec5 | Total
In Dec3 Dec4 etc will be an item that corresponds to the items in table#1.
I need to take the item in Dec3 and retrieve the price based on the group that the user is in and add it to the same for Dec4 and Dec5 and place that total in Table #2 Total.
I can do this by redoing the tables or by having several submits and using a seperate table , but Id rather it be done right. If you can help Id greatly appreciate it.
Table # 1 Item | PriceK | PriceM |Price H | Price T
This is populated with items and four prices, these prices are based on a group that the user belongs to(k,m,h, or t)
Table #2 Username | Group | Dec3 | Dec4 | Dec5 | Total
In Dec3 Dec4 etc will be an item that corresponds to the items in table#1.
I need to take the item in Dec3 and retrieve the price based on the group that the user is in and add it to the same for Dec4 and Dec5 and place that total in Table #2 Total.
I can do this by redoing the tables or by having several submits and using a seperate table , but Id rather it be done right. If you can help Id greatly appreciate it.
Comment