[PHP] Re: Databases, arrays and woes

2001-08-30 Thread _lallous
made that for ya, '; ksort($tree); var_dump($tree); echo ''; $lastplace = ''; while (list($key, $arr) = each($tree)) { if ($lastplace != $key) { echo '* ' . $key . "\n"; $lastplace = $key; } ksort($arr); while (list($pers, $plc) = each($arr)) echo "   $pers is in $plc\n";

[PHP] Re: Databases, arrays and woes

2001-08-30 Thread Hugh Bothwell
"Kath" <[EMAIL PROTECTED]> wrote in message 015301c13156$2c273500$[EMAIL PROTECTED]">news:015301c13156$2c273500$[EMAIL PROTECTED]... > I have a MySQL table which stores information like this: > > | Type | Place Name | Place Abbrv | > > and lets say I have data in the table like: > > Example #1: >