My question is simple, i have a database with 20 records but i want to fetch from the 5th to the 10th the name of the column is amount this is what i wish to achieve below.
the list below is what i will like to fetch from the database
id | Amount |
5 10000
6 5000
7 10000
8 12000
9 5000
10 8000
the list below is what i will like to display
Amount Balance
10000 10000
5000 15000
10000 25000
12000 37000
5000 42000
8000 50000
so u can see that as it loops through the record, it adds up the next.
Hope you understand what am trying to say??? Thanks