Jump to content

MySQL & PHP Time Questions


lill87

Recommended Posts

Im currently trying to make a online text roleplaying game, and im having trouble making a script, ill try to explain it.

 

I want a user to gain 5 "Energy" each 10 minutes, even when the user is not logged in. Now how do i make that in MySQL / PHP? Ive tried many things but cant figure it out, and i cant find any tutorial about it.

 

And how do i make a IF sentence with time? example. ANY time after 30th of october 2008, "something happens".

 

I cant do like:

 

if (X > 30-10-08)
{
thinghappens();
}

 

So how do i make it? please help, I would be VERY grateful!

 

Thanks // lill87

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.