1
我想從這種格式的MySql結果格式的日期(代碼是我在網站上的其他地方使用的,而不是我試圖使用的實際代碼,我只是想要這種格式)...在PHP/MySql格式化時間
date("j F, Y", strtotime($result['comm_date']));
我在網站上的其他地方做過,但無法弄清楚如何格式化下面的結果。它是for循環的一部分,$ str_comments最終得到回顯以顯示包含用戶名和註釋日期的註釋列表。
$str_comments .= "<span class='comment'>" . mysql_result($result, $j, 'comment') . "</span>";
$str_comments .= " by " . mysql_result($result, $j, 'username');
$str_comments .= " on " . mysql_result($result, $j, 'comm_date') . "</br><br/>";
任何指針將不勝感激。
你不會相信多少已經躲避我。感謝您的快速和簡單的答案。 – GuerillaRadio