Skip to main content
Code Review

Return to Answer

should really use timestamps and not date values when handling anything time related
Source Link
Quentin Pradet
  • 7.1k
  • 1
  • 25
  • 44

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 as Unix timestamps with date('Y-m-d H:i:s') or preferbly date('U') unixtimestamp for, which corrects this reasonissue.

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.

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 as Unix timestamps with date('U'), which corrects this issue.

shuld really use timestamp and not date values when handling anything time related
Source Link

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.

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') for this reason.

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.

Source Link

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') for this reason.

default

AltStyle によって変換されたページ (->オリジナル) /