PHP: date boşluklar ile rapor tablo

0 Cevap php

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. DB yüksek yüklü olduğu için, PHP tarafında bunu yapmak gerekir.

0 Cevap