PHP – Expenses Sorter – Code Available

With the current application you may do the following – enter an expense and select what kind of expense it is. I have predefined some of the expenses, but you may add your own later.

What the PHP application actually does is the following – it gives you an ability to sort my expenses by type and then you will be able to have the total sum per type. Check it out by yourself:

Expenses Sorter GitHub Application

So how does it work?

At first, we see a table, which shows all the expenses, which we have made so far. We may filter the expenses, using the filter button. This is the code for this table:

The second thing we have here is a small interface, used to enter data in the table. This interface is accessible through the small link “Add”, visible in the top left corner of the application. This is the code, behind the submission form:

The third thing, you may need to create such a basic application is a file, where you save all the data, constants, footer and a header.

The header and the footer are set as separated files, which are used from both the form and the list.

Pretty much, that is it. It is really beautiful and it can be really useful, if you set the correct procedures for entering data.

Enjoy the code! It is absolutely freeware!

😀