|
Posted by Rich on 01/14/06 08:44
"Pedro Graca" <hexkid@dodgeit.com> wrote in message
news:slrndsfj72.gck.hexkid@ID-203069.user.individual.net...
<snip>
> Example usage:
>
> <?php
> $data = array(
> array('name'=>'joe', 'bio', 'grade'=>'a'),
> array('name'=>'jill', 'chem', 'grade'=>'b'),
> array('name'=>'john', 'psych', 'grade'=>'b'),
> array('name'=>'john', 'chem', 'grade'=>'a'),
> array('name'=>'joe', 'bio', 'grade'=>'a'),
> array('name'=>'jill', 'psych', 'grade'=>'a'),
> );
That's not the format of the original data, how did you get the data into
this convenient format?
<snip>
prints:
name bio chem psych
joe aa - -
jill - b a
john - a b
Joe got an 'aa'?
Looks like you forgot to account for duplicate rows.
Rich
[Back to original message]
|