echo '<td' . $times_class . '>' .
date( 'Y-m-d H:i:s', $time ) .
'<br />' . $time . '<br />' .
human_time_diff( $time ) .
$this->display_past_time( $time ) . '</td>';
那是给我错误的代码。我试着搜索,它说了DateTime
左右。但我有0个PHP技能,我只是看到了我的错误文件并找到了字符串。
答案 0 :(得分:0)
我想我知道可以做些什么。寻找我放置的位置// ********插入此代码*********
SELECT [Purchased Product],
[Purchased Quantity] = sum(CONVERT(INT,[Purchased Quantity]))
[Purchased Month] = DATEADD(DAY, 1 - DAY([Purchased Date]), [Purchased Date])
from StudentPurchasedHistoryTable
WHERE DATENAME(month, [Purchased Date]) = 'August'
group by [Purchased Product], DATEADD(DAY, 1 - DAY([Purchased Date]), [Purchased Date])
...