![]() |
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:
|
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:
|
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.
|
| All times are GMT -5. The time now is 06:25. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi