Php reward system

Links for php scripts

Moderators: gesf, Michalio

Post Reply


I would need help with a system that will assign points for certain processes such as registration, etc.

Points should be awarded for a successful process and for each day the user logs in.

I think more information is required,
I would make a table name for example 'user_progress' and it would be made something like this

create table user_progress(
id int not null auto_increment,
progress varchar(45), //This could be an enum but you know, here is where you would describe the progress
creation_date timestamp not null default current_timestamp,
user_id int not null,
primary key
The everything the user does something that make progress I would a function called something like
public function add_progress(string $progress)
Which would insert a new row on the user_progress table.

I hope I could help
Post Reply