You are here: Re: How do I do this query? « PHP Programming Language « IT news, forums, messages
Re: How do I do this query?

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация