I need a simple PHP Script written that will do the following:
1. The first time the script is run, it will ask user for the following:
Enter Goal Date
The Script will write this data to a goal file, called [url removed, login to view] (or something like this).
2. The Script will then and each time it is run thereafter, ask for and store the following:
Enter Current Weight
The entry date will also be added to the log (date(today))
The Script will write this data to a data log file, called [url removed, login to view] (or something like this).
3. The Script will then and each time a new weight is added, compare this with the previous entered weight, as well as the goal weight.
Open a [url removed, login to view] and [url removed, login to view] file and read in data.
Calculate NewWeight - OldWeight = DifferenceWeight
If DifferenceWeight < Old Weight, then echo "Good for you, you lost " DifferenceWeight "pounds."
else echo "You owe $5 this week for not losing weight."
I need to keep a runny total of the money owed.
This should be very simple. I don't want this in MySQL. Please have comments in the script so I can edit it and I don't know too much about PHP.
If you have a cleaner way of doing this, that is fine. The above is just my way of explaining it.
I do not intend to pay more than $30 unless you can do something really super duper impressive. If you can show me the working script that would be great.
I need you to install it on my server or be available to walk me thru installing it to make sure it works.