我在DB燈具的表:hometeam,awayteam,日期,時間MySQL的組
我目前使用mysql_fetch_array
,並得到以下:
hometeam awayteam date time
--------------------------------------------
Blackburn Wolves 13/08/2011 3:00pm
Arsenal Liverpool 13/08/2011 3:00pm
etc
我要回:
13/08/2011
---------------------------
Blackburn, Wolves, 3:00pm
Arsenal, Liverpool, 3:00pm
etc
我試過按日期分組,但是這只是返回1個固定的那個日期,這是垃圾。
我也試過group_concat
,但問題在於我需要修改此組中的項目,例如將時間格式從服務器時間更改爲上述可讀時間。
你想把日期作爲列名嗎? –
是的,因爲它涉及到每個燈具:) –
狐狸猜測 - 這需要動態... –