2 of 3
shuld really use timestamp and not date values when handling anything time related
I would recommend against storing PHP code for your website in database fields. It will make it very difficult to maintain in the future.
Also, be sure that if someone has an active session from 11:50 PM until 12:05 AM the next day, that your $_SESSION['last-update'] values will work as expected. Timestamps are typically stored with date('Y-m-d H:i:s') or preferbly date('U') unixtimestamp for this reason.
bitsoflogic
- 616
- 4
- 5
default