Hi,
Im very new to php so this may seem like an ultra noob question but here it goes.
Ok Im pulling a date, and a percentage from a table with this code.
SELECT date, percent FROM unitprice WHERE unitprice > number
Then fetching the array, and I want to display it neatly in an HTML table.
BUT theres a catch.....
In a third column of this same table, I would like to insert a previously declared variable into the first cell of the 3rd column, and then have this variable multiply by the percent to its left, down the third column, like a running balance.
So basically I want the HTML table to display this....(rough values, obviously these would be decimals)
Date, Percentage, Balance
Feb 2 1.00 404
Feb 3 1.00 408
Feb 4 2.00 412
Feb 5 1.00 416
Where date and percentage came from a table called unitprice and the balance columns first cell came from a variable $original and then is multiplied by the percent for each row, running balance style. Like a compound calculator kindof.
Is this too complicated to do
Thanks