Click here to Skip to main content
15,895,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
This is My Mini Project

I am working on Reward points management where i need to check every users actions for which they are awarded points actions like spending some amount of money ears few points etc..., if points are consumed they need to be deducted from the card of the specific user.

I have done with Giving points to particular game
please give me some ideas to track these actions

Thanks In Advance
Posted
Updated 18-Oct-10 3:53am
v2

you will need to store these in a database

for each action they do on (I assume) a particular job, record the action they have completed and the points associated with that action into a database.
 
Share this answer
 
As Simon, you need to store all in database.
first, of all you need to define what all action can be taken by a User and then define the no of points earn/redeem by user on every action.

Now whenever user takes a action, first of all make a entry in the database, that what action is taken,at what time, how many points earned/redeemed and other information according to your requirement.
Also add/substarct the points from the total point.

Now whenever you want to see/track the user actions, you can get from database according to your need.

This is the basic idea, you can change it according to your requirement.

Hope this help you.
 
Share this answer
 
If you dont want to use a database, you can store your data in a text file. However, if the number of users are excpected to be large this is NOT a recommended idea.

Storing in a file can only be a mini-solution (for a small number of users).
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900