Can anyone help me on creation of comparison matrix from mySQL table.
I have following table.
MRP | Brand | USAGE
10 | ABC | 200 MB
10 | XYZ | 300 MB
20 | ABC | 500 MB
30 | XYZ | 600 MB
I want a query which gives following result.
MRP | ABC | XYZ
10 | 200 MB | 300 MB
20 | 500 MB |-----------
30 | -----------| 600 MB
can I achieve this using PHP?
thanks and regards.
You want what’s called a pivot table.
something like:
See this article for more info:
http://www.artfulsoftware.com/infotree/queries.php#78