RE: [PHP] Getting values of duplicate keys in array

2002-04-11 Thread Christoph Starkmann
Hi Michael... > hmm...he has a table for premises and one for doctors, hasn't he? > > FROM $medTable m, > > $praxTable p He has ;)) Cheers, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.com/ ICQ: 100601600 -- -- PHP G

Re: [PHP] Getting values of duplicate keys in array

2002-04-11 Thread Michael Virnstein
hmm...he has a table for premises and one for doctors, hasn't he? > FROM $medTable m, > $praxTable p "Justin French" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Just a quick note, you wouldn't base it upon $description would you? > It reall

RE: [PHP] Getting values of duplicate keys in array

2002-04-11 Thread Christoph Starkmann
Hi Justin! > By testing for (shared house), you'd end up grouping them > together like > this: > > Fred Flintstone > Wilma Flintstone > Homer Simpson > Marge Simpson > Bedrock > (shared house) > > ... which isn't your intended result. Yes it is ;) What you write is right but this is how

Re: [PHP] Getting values of duplicate keys in array

2002-04-11 Thread Justin French
Just a quick note, you wouldn't base it upon $description would you? It really depends on your data, but consider these four records: Fred Flintstone Bedrock (shared house) Wilma Flintstone Bedrock (shared house) Homer Simpson Springfield (shared house) Marge Simpson Springfield (shared house)

[PHP] Getting values of duplicate keys in array

2002-04-11 Thread Christoph Starkmann
Hi folks! The following problem: I got a db (mysql) with information about doctors. Name, adress, phone etc. Now I'm reading these information with a simple mysql-query: $queryString = "SELECT DISTINCT m.$sureName, m.$preName, m.$prax, m.$title, "; $queryString .= "p.$town, p.$zip, p.$phone,