Creating a cronjob
Hi
Inside the table user I have 3 fields, posts and helppoints, contributionpoints.
Now, I would like to have a cronjob do every 24 hours a calculation like this:
$posts+$helppoints*3=$contributionpoints.
Now, it should update all contributionpoints fields in the table user.
And, like you've guessed, I have totally no idea how to do that. Anyone willing to help me a bit?
|