Jump to content

Caomparing fields


selwynorren

Recommended Posts

Hi All,

I am pretty much stumped at the moment of something, I need the php clever guys to please help :D

I have two results from a query, they both contain icao codes

Result 1: FAJS, FACT, FABL, FAWB

Result 2: FAJS, FAVS, FAWB, FANS

I want to be able to compare these two results and echo out the icao code each time there is a match i.e

Result 3: FAJS, FAWB

I know I can use something like: if (result 1 = result 2) to make a comparison, but how do out output what that comparison would be?

I hope this question makes sense

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...