I want to convert all columns data into rows data.
id | division name | student_name1 | student_name2 | student_name3 | student_name4 |
1 | blah blah | abc | XYZ | jlm | tmn |
This table I have created and values are save using array.
I want to save all student name in one column like below:
id | division name | student_name |
1 | blah blah | abc |
2 | blah blah | XYZ |
3 | blah blah | jlm |
4 | blah blah | tmn |