Jump to content

[SOLVED] Help With Date Function


refiking

Recommended Posts

I am trying to store the date exactly 24 hours from the time the script is ran into my DB.  What do I need to add to this to make the time be the exact time it is at the time the script is run, while keeping the date as the next day. Here's my current code:

 

$date=mktime(0, 0, 0, date("m"), date("d")+1, date("y"));

Link to comment
https://forums.phpfreaks.com/topic/84769-solved-help-with-date-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.