User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Software Developers' Lounge section within the Software Development category of DaniWeb, a massive community of 456,534 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,047 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Software Developers' Lounge advertiser: Programming Forums
Views: 2354 | Replies: 0
Reply
Join Date: Oct 2007
Posts: 2
Reputation: Yashua is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Yashua Yashua is offline Offline
Newbie Poster

PHP, MySQL, CGI Form Help with Inventory Database

  #1  
Oct 12th, 2007
I wish to create an inventory database with the following:
1. When an item is checkmarked and the submit button is pressed that item is deducted from the mySQL Inventory portion.
By default only 1 is deducted per item, but if they add to the Quantity they wish to order then the amount listed in the "quantity" would be deducted from mySQL.

2. I would love to have a link for the admin to be able to add to the stock.
3. I wish to have this form dynamically show how much there is in stock.
4. I wish to have an ALERT email sent to my email when the stock reaches the minimum default of 2 or less per item and that default can be changed for all items in the form.

Example:
When an item is checkmarked it will be ordered and deducted from stock.
If the item is NOT checkmarked, obviously nothing will be ordered and nothing will be deducted.

------------------------------------------------------------------------------------------------
client Function in the Form Below:______ Admin Function in the Form Below:
------------------------------------------------------------------------------------------------
Chicken-[x] Quantity [1 ] In Stock [5 ] ____ Admin Add to Stock ____ Alert when [ 2] or less.
Milk----[ ] Quantity [1 ] In Stock [15] ____ Admin Add to Stock ____ Alert when [ 2] or less.
Orange--[ ] Quantity [1 ] In Stock [12] ____ Admin Add to Stock ____ Alert when [ 2] or less.
Apple---[x] Quantity [1 ] In Stock [3 ] ____ Admin Add to Stock ____ Alert when [ 2] or less.
_____________________________________________Admin Add Additional Inventory Items to Database

[SUBMIT]

------------------------------------------------------------------------------------------------
Is there a quick way of doing this from the code you already have?
I would really appreciate your help. Thanks a million.
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Software Developers' Lounge Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Software Developers' Lounge Forum

All times are GMT -4. The time now is 4:42 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC