jemjabella wrote in php 😯confused

me & foreach don't get along..

resolved

I've got an array and a database. How do I check the data in the array against the database (basically to see if that piece of data exists in a specific field) and then show a message depending on whether it exists or not?

I figured it'd be something to do with the foreach() thingymajig.. but as expressed in the title, foreach() & me don't get along well.

Please excuse my n00bish-ness.. out of all things PHP, arrays & I have the most arguments. ;)