Welcome Guest, Not a member yet? Register   Sign In
Storing negative values in MySQL
#6

[eluser]CroNiX[/eluser]
You really don't need to use neg numbers for this.
You have an inventory (positive number).
You have a purchase (positive number).
Now inventory is (inventory - purchase).
Do the math in php or in the db query.


Messages In This Thread
Storing negative values in MySQL - by El Forum - 01-15-2010, 03:39 PM
Storing negative values in MySQL - by El Forum - 01-15-2010, 05:16 PM
Storing negative values in MySQL - by El Forum - 01-15-2010, 05:17 PM
Storing negative values in MySQL - by El Forum - 01-15-2010, 05:23 PM
Storing negative values in MySQL - by El Forum - 01-16-2010, 02:30 AM
Storing negative values in MySQL - by El Forum - 01-16-2010, 04:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB