I have selected data from database and here is the result:
+--------+------------+
| room | name |
+--------+------------+
| 12 | John |
| 13 | Marry |
| 14 | Camilla |
| 14 | Beatrix |
+--------+------------+
And how can I print to my page by php code like this :
12 : John
13 : Marry
14 : Camilla, Beatrix
thanks for helping :)