How to create a comparison table

Hi
all

I am having table called package details. In the packadetails table cab names and fares are define.

Now I want to display the data in the following format

Cabs &
package details teecab bluecab redcab

1 hr 25 kms 500 550 450
2 hr 40 kms 700 650 600
3 hr 50 kms 890 800 750

please help me out

thanks

MD.Samiuddin

Post the code you have written so far, please, so we can see what’s wrong with it.