Forums

PHP

This topic is locked

Check date

Posted 16 Nov 2002 17:35:11
1
has voted
16 Nov 2002 17:35:11 AleXander G. posted:
Hello,

I was wondering if anyone could help me with the following 'problem'... Last week I finished a website in PHP with a soccer league. Now I have one question which I can't answer myself.

When someone posts his/her prediction MySQL automatically add's the server time, so that I can see if someone didn't predicted a game during or maybe even after the game.

But I was wondering if there is another way which does this automatically. For example I add in the database that the game starts at 20:30 and when someone submits the prediction the current server time is being checked with the one in the database. If before then add, if after then deny.

With Dreamweaver I thought of using the filter mode. But I have no idea if there is a server variable which can request the server time...

Hope someone can help me somehow!

AleXander.

Replies

Replied 18 Nov 2002 19:52:09
18 Nov 2002 19:52:09 Brent Colflesh replied:
Dear Alexander,
Look at this:

www.php.net/manual/en/function.time.php

Regards,
Brent

Reply to this topic