943,584 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 369
  • PHP RSS
Nov 3rd, 2008
0

Grabbing newly enetered data from table once updated

Expand Post »
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!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
BillyMako is offline Offline
16 posts
since Jan 2008
Nov 3rd, 2008
0

Re: Grabbing newly enetered data from table once updated

why don't you subtract one for the stock_level once the item is added to the orders_products table. thats how i would do it.
Reputation Points: 235
Solved Threads: 193
Nearly a Posting Virtuoso
kkeith29 is offline Offline
1,315 posts
since Jun 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: text editor using javascript
Next Thread in PHP Forum Timeline: Is That Possible in PHP





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC