this time I have some problem to solved my case, so I am here.
I have one tables in database with name is test and include 3 attributes (id, id_position, name). For detail please look at here
Here we have new results from group_concat and I give new field name (result). I just want to make the (result) field to new dynamic column, following (id_position). Example result :
+-------------+-----------+----------+-----------+----------+
+ id_position + result1 + result2 + result3 + result4 +
+-------------+-----------+----------+-----------+----------+
+ 1 + name_11 + name_6 + name_5 + name_3 +
+ 2 + name_2 + name_1 + - + - +
+ 3 + name_4 + name_7 + - + - +
+ 4 + name_8 + name_9 + name_10 + - +
+-------------+-----------+----------+-----------+----------+
If result is empty, give a symbol like ( - ) or something. Please give your suggestion for solved this problem, thanks for your time