Good evening guys, I do not know if anyone has gone through this, but I need to convert the result of a mysql search into columns, not to change the rows through the columns, but to make some results become the titles of column.
Being:
NOME DATA
fulano 2016-01-10
fulano 2016-02-15
fulano 2016-03-10
beltrano 2016-01-10
ciclano 2016-02-15
ciclano 2016-03-10
beltrano 2016-04-10
It should look like this:
NOME 2016-01-10 2016-02-15 2016-03-10 2016-04-10
fulano X X X
beltrano X X
ciclano X X
These dates are dynamic, stored in another table in the database.
I do not know if it is possible to do this type of query, but I thank you for all the help.