S
|
shoppy author 3/4/2015 |
Let me explain a little bit more. |
![]() |
Sergey Kornilov admin 3/4/2015 |
Not really sure what causes the trouble here. |
S
|
shoppy author 3/4/2015 |
Not really sure what causes the trouble here. You have a table with DVDs/Books. You need another table to store all items movements i.e. date/time out, date/time in etc. DVD is rented - add a new record to history table with setting time out equals to th current time. DVD is back - update that record setting time in to current time. As simple as that.
|
![]() |
Sergey Kornilov admin 3/4/2015 |
Try to read my answer one more time. You should not be making any changes to the main DVD table. Use it as a reference, as a lookup tables. All movement should stored in history table only. |
S
|
shoppy author 3/5/2015 |
Try to read my answer one more time. You should not be making any changes to the main DVD table. Use it as a reference, as a lookup tables. All movement should stored in history table only.
global $conn,$strTableName; |
S
|
shoppy author 4/2/2015 |
Ok, next 'problem'.
|