Jump to content

mktime?


electrix

Recommended Posts

Could you not +20 to the day parameter of mktime() inside your (assumed) loop, this should offset each date by 20 days...

 

I don't understand what exactly you mean..

 

Yes it's a loop.. But no I don't want to offset the date... I don't want to make day 1 to be displayed as day 21.

It's for a "payroll-rapport". Every 20th it's payday so that means that I want to display hours (that's inserted in mysql) between, for example,

the 20th January to the 19th Februari..ALL the days between and with these dates.

 

In one table its 20th januari and forward to 19th februari.

The next table its 20th februari to the 19th march.

The next table its 20th march to 19th april.

 

Sorry if I'm hard to understand...

Link to comment
https://forums.phpfreaks.com/topic/42836-mktime/#findComment-207961
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.