Of course, the easiest thing to do is search for “php pivot tables”. There are many libraries for this, although I don’t recall any that output “plain text”. There are some ultra-slick ones that you can buy if you want the output to look like something from Excel in 1998.
Cary
> On Dec 11, 2014, at 4:15 PM, Cary Gordon <[log in to unmask]> wrote:
>
> Where do the data come from? An array?
>
> Cary
>
>> On Dec 11, 2014, at 1:32 PM, Ken Irwin <[log in to unmask]> wrote:
>>
>> Hi folks,
>>
>> I'm hoping to find a PHP class that designed to display data in tables, preferably able to do two things:
>> 1. Swap the x- and y-axis, so you could arbitrarily show the table with y=Puppies, x=Kittens or y=Kittens,x=Puppies
>> 2. Display the table either using plain text columns or formatted html
>>
>> I feel confident that in a world of 7 billion people, someone must have wanted this before.
>>
>> Any ideas?
>>
>> Thanks
>> Ken
>
|