PHP: report table with date gaps

Posted by Daniel on Stack Overflow See other posts from Stack Overflow or by Daniel
Published on 2010-12-21T14:16:33Z Indexed on 2010/12/21 14:54 UTC
Read the original article Hit count: 160

Filed under:
|
|

Hi.

I have a table in DB which contains summaries for days. Some days may not have the values. I need to display table with results where each column is a day from user selected range. I've tried to play with timestamp (end_date - start_date / 86400 - how many days in report, then use DATEDIFF(row_date, 'user_entered_start_date') and create array from this indexes), but now I've got whole bunch of workarounds for summer time :( Any examples or ideas how to make this correct?

P.S. I need to do this on PHP side, because DB is highly loaded.

© Stack Overflow or respective owner

Related posts about php

Related posts about datetime