Android Sorting data into arrays - ArrayAdapter JSON Listview
问题 I have a MySQL table called foods which contain diet information. I am currently running the php script which calls the following sql command Select * from Food where dietid = 1 which returns the image below. The column day is the day of the diet so day 1, day 2 etc.. the time refers to a point during the day so time 1 is breakfast time 2 is snack time 3 is lunch time 4 is afternoon snack and time 5 is dinner. I would like to display the data in the following way in a listview for each day of