How would I build a web page similar to an online banking page that has a running account balance, only I want to make each line editable. If a specific line was edited the total would then change up through the top. (transactions are sorted by date order)
How do you break up a sql table in 50 line increments? So it only shows you 50 lines on one page with the ability to click on the previous 50 items, etc etc until you reach the first/oldest transaction?
I can pull back full tables, but breaking them up in sections is hard. I also cant figure out where to do the "running total" math.
If someone could give me some specific functions I could study, or a strategy using the various technologies I would be very very grateful. (I have read beginner books on SQL, Javascript, PHP, AJAX, HTML/CSS and now am reading an advanced book on PHP.)
It seems relatively simple what I am trying to do ...
ID key--Date--Name--CODE--Cleared?--Amount--RunningTotal-- EDIT--SUBMIT
1-50 -> 50-100 (link at bottom of block)
ID Key - this would be primary key, never to be deleted, just made zero if necessary
Date - Creation Date for each record
Name - What a person would want to name each transaction
CODE - A dropdown to code the transaction type
Cleared - YES or NO dropdown to tell if transaction cleared the bank
Amount - Dollar amount typed for a transaction
Running Total - TRICKY ONE- Starting with first/oldest transaction math is done
So an amount could be a positive or negative, and it ignores checks that have
not cleared. Do you store this amount? Do you calc it every time? Use SQL or
PHP or Javascript? What do you do here?
Edit - Edit button if you want to change any of the fields (other than ID)
Submit - This would make the change and load it back to SQL (page s/b refreshed
at this point because running total would have to change)
1-50 -> 50-100 - If 50-100 is clicked then it would show 50-100->101-150
Basically an on line check rec tool, I want to include this on my site. (not a business, I am trying to help people, I dont get any money for what I am trying to set up)