Php reward system

Links for php scripts

Moderators: egami, macek, gesf

Post Reply
fretkert
New php-forum User
New php-forum User
Posts: 1
Joined: Fri Aug 10, 2018 2:52 am

Fri Aug 10, 2018 2:58 am

Hello,

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.
gabbecerra97
New php-forum User
New php-forum User
Posts: 1
Joined: Mon May 31, 2021 9:14 pm

Mon May 31, 2021 9:45 pm

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

[SQL]
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
);
[/SQL]
The everything the user does something that make progress I would a function called something like
[PHP]
public function add_progress(string $progress)
[/PHP]
Which would insert a new row on the user_progress table.

I hope I could help
Post Reply