Skip to content
Advertisement

PHP table rows based on table header

i want to create a table of all classes as table header and rows with name of student in each class each column according to it header, all data come from two (students, classes) mx code :

JavaScript

this code shows them grouped as wanted but all names are in the same row as below

JavaScript

, i tried to change the location of the (td, tr) but no success, any idea how to do it properly , thanks in advance

Advertisement

Answer

If i m not wrong this should do the trick!

my array:

JavaScript

Working code:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement