Click here to Skip to main content
15,942,934 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a table


date name value
25 a 10
26 b 20

i need to display below table in html using php

final table to display

date a b
25 10 -
26 - 20

can anyone help me...its urgent

What I have tried:


trial and error

vertical its eazy

displaying it horizontal big deal
Updated 2-Oct-18 1:10am

1 solution

Share this answer
Member 14004776 2-Oct-18 7:15am    
how to display in html table using php.
OriginalGriff 2-Oct-18 7:49am    
Start with the link, and work out the PIVOT you need.
Member 14004776 2-Oct-18 8:04am    
can u post the answer if you know about this please...
OriginalGriff 2-Oct-18 8:17am    
It's called a PIVOT query, and we do not do your homework for you - so follow the link and start reading. You won't learn if y0u are just given a solution.
Member 14004776 2-Oct-18 8:52am    
i can also learn from the answer if u wish to give me....this is just a sample table the actual table is really huge.if you know the solution post it.dont get me wrong.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900