I want to have a code that updates a row every hour, I know that cron job can do this, but I never can get cron jobs to work and thought this would be easier.
From this nothing happens(when I click refresh), and I did click refresh at 11.
if (date("h") == 11) //Hour 11
mysql_query("UPDATE `players` SET `shoppoints` WHERE $player->id");
Im pretty sure for coding like this, you need to click refresh on that page and it wont add points when they arent on, but i know how to fix it to work good enough for me.