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 Name
Enter Goal
Enter Goal Date
The Script will write this data to a goal file, called [login to view URL] (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 [login to view URL] (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 [login to view URL] and [login to view URL] 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.
Thanks!
Hi, my name is Patrick and I can set this up for you. MySQL would be more efficient but if you have your heart set on using a txt file it can be done that way also. I can get this to you within 24 hours, would be happy to install on your server for you. Please contact me via PMB if you have any questions.
$30 USD in 1 day
5.0 (35 reviews)
4.5
4.5
3 freelancers are bidding on average $30 USD for this job