Jump to content

Calculations using PHP and a flat file


dp2

Recommended Posts

Could some one point me in the right direction.

 

Firstly, I would like to find out how to add a set number say 10, via a form to a flat file field that not only deletes and replace but to add the existing number together to produce a total. A sort of counter in units of 10.

 

I'm working on a simple afflicate script that adds rewards points to a registerd user who has refered  a new user to a basic subscription service. The new user types in the users unique promotion code and is directed to a page that offers a discounted rate (A page with a Paypal button link)

 

The promotion code I thought could be the userid number to access the correct line and then adds the points.

 

I can add the points to the field but it replaces the other record.

 

In general what are all the calculation possibilities

 

Thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.