php - Column Calculator -


i have following table , want know how set column total calculate sum of row. want total column calculate first_bid - second_bid.

id |      first bid |    second bid   |        total 0  |        7       |         1       |  (first_bid)-(second_bid) 1  |        8       |         2       |   2  |        5       |         3       |   3  |        4       |         4       |   4  |        5       |         5       |   5  |        5       |         6       |   

i need display user previous bids , total on page. total should in descending order also.

you can calculate total when querying database.

select first_bid, second_bid, (first_bid - second_bid) total table order 3 desc 

something along these lines


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -