|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Logic Question
This is a PHP website....
Okay, I have these variables... PHP Code:
Now, my question is what logic would I need if I wanted to check if the Item's year/month/day and hour/minute has passed my server's year/month/day, hour/minute. This is the logic I've come up with but it doesn't work quite right... PHP Code:
Last edited by aubinhick990 : 10-03-2006 at 22:30. |
|
#2
|
|||||
|
|||||
|
Re: Logic Question
Is there any reason you can't store time() instead? If you need the d/m/y out of it later, you could use date() then.
Otherwise, the simplest way would be to use: PHP Code:
PHP Code:
PHP Code:
Last edited by evulish : 11-03-2006 at 11:13. |
|
#3
|
|||
|
|||
|
Re: Logic Question
Wow thanks a lot. I can't do it right now but I'll work on that ASAP and get back to you about how it goes. As you can tell, I'm pretty novice when it comes to PHP but am still learning.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Important question regarding starting position of balls in the BOT | Nimmy | Rules/Strategy | 2 | 12-02-2006 17:17 |
| Question of the Week!!! (6/14/04) | Andy Grady | General Forum | 23 | 01-07-2004 15:54 |
| Question of the Week [05-02-04]: The Very Merry Month of May | EddieMcD | Rumor Mill | 10 | 05-05-2004 14:02 |
| Why I hate Logic | EnderofDragon | Chit-Chat | 2 | 19-02-2002 21:02 |