-1
因此,這裏是我從查詢得到表:集團通過在頭從SQL查詢PHP
----------+----+-----------+----------------------
45678-sm-w| 18 |T-Shirts | Mens clothing
----------+----+-----------+----------------------
45678-sm-b| 5 |T-Shirts | Mens clothing
----------+----+-----------+----------------------
2189-L-Wh | 4 | Socks | Juniors Clothing
----------+----+-----------+----------------------
2189-L-Bl | 3 | Socks | Juniors Clothing
----------+----+-----+-----+----------------------
我想放入報告中的模樣:
T-Shirts
----------+----+-----------+----------------------
45678-sm-w| 18 |T-Shirts | Mens clothing
----------+----+-----------+----------------------
45678-sm-b| 5 |T-Shirts | Mens clothing
----------+----+-----------+----------------------
Socks
----------+----+-----------+----------------------
2189-L-Wh | 4 | Socks | Juniors Clothing
----------+----+-----------+----------------------
2189-L-Bl | 3 | Socks | Juniors Clothing
----------+----+-----+-----+----------------------
我知道是通過一個循環完成的,但無法弄清楚。謝謝!
顯示一些代碼(PHP/SQL ..你試過什麼)。 – Kermit
我不知道從哪裏開始。你不需要投下我的問題。 –
一旦問題顯示出努力並被編輯,我可以刪除我的投票。 – Kermit