i have problem with mysql query and i'm stuck...
I have post with many tags and i want to let users to get posts with choosen tags. I store information about tags in table like this:
Tag_warp(
id_tag_wrap,
id_tag,
id_post)
I need to select distinct post having selected tags. Do you have idea how to make it? If i ask for: id_tag = "5" AND id_tag= "2" i got no results (which is obvious) if i ask for: id_tag = "5" OR id_tag= "2" i have id_post with results having 2 or 5 but i need only those post having both id_tag.
Any advice?