Skip to content
Advertisement

Tag: transpose

How to turn a table vertical using PHP

I am just learning PHP ,and I want to create a table that display echo data that I submit to my database , the problem I have that the table displayed horizontally by default as you see Horizontal default table this my script but I want it to be echoed vertically instead like this VERTICAL RESULT I WANT and I

Display table values vertically while keeping table structure

Been checking out other ways used to order array values vertically for use in a table but most of them were the equivalent of flipping your table 90 deg to the right. I’ve been trying to think of a way to properly implement this but I think I need some help. For example, the table (horizontal order): Is reordered to

Advertisement