Re: Comparing array elements

2002-06-05 Thread Chris Knipe
headache now as well, which just isn't helping right now... *shrugs* Any ideas? - Original Message - From: "Dan Nelson" <[EMAIL PROTECTED]> To: "Chris Knipe" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, June

Re: Comparing array elements

2002-06-05 Thread Dan Nelson
In the last episode (Jun 05), Chris Knipe said: > Does anyone have and ideas of wisdom on how to compare arrays (mysql > result sets) and group items based on if they exist in two or more > arrays? > > Now, I want to compare group1 against the server list, and do something like > the following: >

Re: [PHP] Comparing array elements

2002-06-05 Thread Pushkar Pradhan
You can use in_array or array_search. > hey everyone, > > Does anyone have and ideas of wisdom on how to compare arrays (mysql result > sets) and group items based on if they exist in two or more arrays? > > For example: > > I have a table, with a list of servers: > server1 > server2 > server3 > s

Comparing array elements

2002-06-05 Thread Chris Knipe
hey everyone, Does anyone have and ideas of wisdom on how to compare arrays (mysql result sets) and group items based on if they exist in two or more arrays? For example: I have a table, with a list of servers: server1 server2 server3 server4 server5 ... serverX I have a table that specifies w