Hello all. I am stumped. I have an image database that contains keywords for each image. The keywords are in a separate table from the images. I use a cross-reference table to link keywords to images. This is how the tables look:
image
id primary key
name
preview
image_keywords
id primary key
name
image_xref_keywords
image_id foreign key
keyword_id foreign key
If I want to search for an image that contains all of the keywords a user enters, I have no idea how to do this. It is easy to search for any of the keywords, but when I want to do all of the keywords it doesn't make sense to me. Any ideas are appreciated.
Thanks,
-Sean