I am putting together an inventory system which keeps count of the stock level.
I have the inventory database setup for example:
Product Stock_level
Battery1 25
Whenever "Battery 1" is bought, it adds a row to the "orders_products" table.
Is there a way where i can have an update button which will check to see if there are any new rows since the last press of the update button which will allow me to deduct 1 off the stock level of "Battery 1" ???
I hope I have made sense!