Comparing 2 arrays
Posted on 2001-06-21
Okay. I have a table with Groups assigned to a user and a table with Groups assigned to an event.
I am storing the info from each table in a one dimensional array. (This I have working).
One array has Group ID's assigned to a user, the other has all Group ID's assigned to an event.
I want to compare the 2 arrays and see if the Group ID's associated with the user are in the Group ID's from the event.
If they are set a flag on the ones that are the same.
The purpose is to either show or hide info from the user on the display page based on whether they are in a certain group or not.
Can anyone help? Thanks in advance.