Could someone write me php file that will do the following:
-after 1 hour, the user receives 1000 credits.
-the user does not have to be online to receive the credits
-if the user has more than 15000 credits, no credits will be added
start with this:
you can also use sleep(seconds here); for the part where it waits an hour.
thanks!
-after 1 hour, the user receives 1000 credits.
-the user does not have to be online to receive the credits
-if the user has more than 15000 credits, no credits will be added
start with this:
Code:
<?php
UPDATE users SET credits = '1000' WHERE id = '1';
?>
you can also use sleep(seconds here); for the part where it waits an hour.
thanks!