I have a table of fixtures in my database: hometeam, awayteam, date, time
I am currently using mysql_fetch_arrayand getting the following:
hometeam awayteam date time
--------------------------------------------
Blackburn Wolves 13/08/2011 3:00pm
Arsenal Liverpool 13/08/2011 3:00pm
etc
I want to return:
13/08/2011
Blackburn, Wolves, 3:00pm
Arsenal, Liverpool, 3:00pm
etc
I tried a group by date, but that just returns 1 binding for that date, which is garbage.
I also tried group_concat, but the problem with this is that I need to change the elements in this group, such as changing the time format from server time to read time, as mentioned above.
source
share