ok.
if you want to assign some points for each user when the 'user' proceed to login, you must know date of last login.
you can not attach points for every login since it would encourage logging multiple actions to collect points.
every 24 hours regardless of how many times it gets points login
to do so follow the example below:
$sql = "UPDATE 'USER_TABLE' SET 'POINTS' = 'points+$p' WHERE time < now() - ".$vt." and user = '$user' ";
mysql_query($sql);
where:
USER_TABLE - your table
POINTS - row points
$p = '50'; - 50 points
time - last login
now(); - real time
$vt = "86400"; - 24H
etc...
if you still want to award points for each login you can attach the example below just below the login script with you.
$update = "UPDATE 'USER_TABLE' SET points=points+$p WHERE user ='$user'";
mysql_query($update);
repeat the procedure to log out