*This message was transferred with a trial version of CommuniGate(tm) Pro* Or, if you only want the number_attacks to increase for every 10 minutes that someone's playing (so it's not increasing throughout the night) you'll probably just want to hold the time the game started in a variable (or DB whatever) and just check with each page refresh to see if it's time to increase the value.
There's other ways to do it, but your question was kinda vague so I'm not sure what method would work best for ya. Michael Kennedy www.onionology.com -----Original Message----- From: Jon Haworth [mailto:[EMAIL PROTECTED] Sent: Sunday, September 07, 2003 5:10 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] game in php *This message was transferred with a trial version of CommuniGate(tm) Pro* Hi, > I have this database with this fields; id and > number_attacks. And every 10 minutes > number_attack to be increased by 1. You'll need to set up some sort of scheduled task (if you're on unix, your best bet is probably cron) - this task should call a script that connects to your database and updates the field. If you like, you can write the script in PHP and use something like lynx or wget to access it. Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php