Welcome Guest, Not a member yet? Register   Sign In
Merge Arrays
#1

[eluser]Jay Logan[/eluser]
Working with a new API that basically gives me a second database of schools around the country. I already have a decent sized DB of schools myself. What I want to do is allow the user to search for a school and if it exists in my DB, don't show the school from the second DB. I'm matching the DB's up with a column in my DB. What I need help with is the arrays that get spit out from each DB. See below.

Code:
[0] => Array
        (
            [ID] => 4167
            [Name] => Pope High School
            [Abbreviation] => Pope
            [TeamType] => H
            [City] => Marietta
            [State] => GA

        )

    [1] => Array
        (
            [ID] => 4167
            [Name] => Pope High School
            [Abbreviation] => PHS
            [TeamType] =>
            [City] => Marietta
            [State] => GA
        )

Key "1" is my item and is the only item that should show. Notice that the ID's are the same. Is there a way I can search if ID matches - and if they match, only show my item?


Messages In This Thread
Merge Arrays - by El Forum - 03-24-2009, 02:45 PM
Merge Arrays - by El Forum - 03-24-2009, 03:19 PM
Merge Arrays - by El Forum - 03-24-2009, 04:57 PM
Merge Arrays - by El Forum - 03-24-2009, 05:37 PM
Merge Arrays - by El Forum - 03-24-2009, 05:59 PM
Merge Arrays - by El Forum - 03-24-2009, 07:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB