Hi All,
Question:
Ive got these values in a MYSQL db.
ID Value1 Value2 Value3
1 7250 1000 50
2 9357 2000 100
3 10258 3000 150
4 18790 4000 200
What i want to do is calculate the differences between 1 and 2, 2 and 3, 3 and 4 etc for all the colums.
The output would be:
ID VALUE1 VALUE2 Value3
1 2107 1000 50
2 901 1000 50
3 8532 1000 50
Does someone knows how to do this in PHP?
Does someone has an example?
TnQ
Question:
Ive got these values in a MYSQL db.
ID Value1 Value2 Value3
1 7250 1000 50
2 9357 2000 100
3 10258 3000 150
4 18790 4000 200
What i want to do is calculate the differences between 1 and 2, 2 and 3, 3 and 4 etc for all the colums.
The output would be:
ID VALUE1 VALUE2 Value3
1 2107 1000 50
2 901 1000 50
3 8532 1000 50
Does someone knows how to do this in PHP?
Does someone has an example?
TnQ