|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Checking time in db against clock time
Hey everyone,
I need to check if a certian amount of time has passed before I allow my script to insert a new record. I place a php time stamp into a col in a table. How would i check in my script if 24hours has passed since that time? Thanks
__________________
Nothing is Everything
|
|
#2
|
||||
|
||||
|
1. retrieve the time stamp from the DB
2. get the current timestamp 3. take the difference 4. if the difference is less then whaever 24 hours would be (too lazy to do the math) then 24 hours have not passed. If hte difference is greater then 24 hours have passed
__________________
CHornJr "One day I'll know what I am doing" ![]() My Blog Suanhacky Lodge #49 Rebel Squadrons |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Checking time in db against clock time |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|