没有人回答我的问题(从我以前的帖子编辑:Php: Archives system like blog),我决定提出另一个问题,如果可以的话!
"经过大量研究,我找到了合并相同月份的解决方案:"
<?php
$q = $db->query("SELECT YEAR(dateNews) AS YEAR, MONTH(dateNews) AS MONTH, COUNT(*) AS newsCount FROM news GROUP BY YEAR, MONTH");
while($data = $q->fetch()){
$dateMonth = $data['MONTH'];
echo "<a href='#''><p>".utf8_encode(strftime('%B %Y', strtotime($dateMonth)))." (" . $data['newsCount'] . ")</span></p></a>";
}
?>
&#34;月份被正确合并,但现在我有另一个我无法解决的问题,&#34; janvier(january)1970&#34;到处都是......:&#34;
https://imagizer.imageshack.us/v2/813x334q90/540/cks3fp.png
&#34;我真的不知道该做什么或怎么做。有人知道吗?&#34;
感谢您的帮助...