Skip to content
Advertisement

How do I echo multidimensional array values by table rows instead of columns in php [closed]

I’m trying to display a multidimensional array from my database into an Html table with PHP, row by row instead of column by column.
I have the following array;

JavaScript

I tried using foreach and here is the output I got;
https://jsfiddle.net/fraqy912/1/

But, this is the output that I’m actually trying to achieve;
https://jsfiddle.net/5akgjtvf/3/

Advertisement

Answer

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