I have a table in mysql called 'prices_x' that looks like this:
ID Fecha Hora hfmachine1 hcmachinex hfmachiney hfmachinez hfmachinep etc... 1 12/01/01/ 00:00 90 100 100 98 78 etc... 2 12/01/02/ 01:00 90 100 100 98 78 etc...
and i have other called 'prices_y' with the same columns but with diferents values.
ID Fecha Hora hfmachine1 hcmachinex hfmachiney hfmachinez hfmachinep etc... 1 12/01/01/ 00:00 50 40 80 76 89 etc... 2 12/01/02/ 01:00 60 40 90 30 23 etc.
I want to do a report page with php but first i need to convert my table in this. only want to show all machines in a date and time specific (i know how to do that), but i don't know how to convert my columns to rows, i'm try everything and i don't find a solution.
Id Machine prices_x, prices_y 1 hfmachine 90 50 2 hfmachinex 100 40 3 hfmachiney 100 80 4 hfmacinez 98 76 5 hfchinep 78 89
Thanks.