View Single Post
Old 03-11-2007, 09:09 PM   · #1
cotton
New Member
 
Trader Rating: (0)
Join Date: Jan 2007
Posts: 17
NP$: 0.00 (Donate)
cotton is an unknown quantity at this point
php code for inventory system in updating item quantity



recently,im developing an inventory system. the problem is i still dont know how to automatically update the quantity in the stock after the user take the items and how to add the item to the cart as in a shopping cart system. pls help..im using easyphp and i do not use class and function in my system.help me pls...

this is the sample of my code:
<table width="80%" border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#CCCCCC">
<tr>
<td width="18%" bgcolor="#E0E2EB"><div align="left">Description : </div></td>
<td width="82%"><? echo $row['description']; ?></td>
</tr>
<tr>
<td bgcolor="#E0E2EB"><div align="left">Item Code : </div></td>
<td><? echo $row['item_code']; ?></td>
</tr>
<tr>
<td bgcolor="#E0E2EB"><div align="left">Category : </div></td>
<td><? echo $row['category']; ?></td>
</tr>
<tr>
<td bgcolor="#E0E2EB"><div align="left">Current quantity : </div></td>
<td><? echo $row['quantity']; ?></td>
</tr>
<tr>

<td bgcolor="#E0E2EB">Required quantity : </td>
<td><input type="text" name="quantity" value="<? echo $row['quantity']; ?>">
<input type="hidden" name="id" value="<? echo $row['quantity']; ?>"></td>

</tr>



</table>


thnx in advance..

i stored the cart in the database..

Anyone..help me pls..i need the code so badly.


Please register or log-in into NamePros to hide ads
cotton is offline   Reply With Quote
Site Sponsors
Proof is in the Parking http://www.mobisitetrader.com/ Exdon
Advertise your business at NamePros
All times are GMT -7. The time now is 04:00 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.