hi i need some help,
i'm working on a search page for a client and i need to extract multiple values based on id.
in db
+---------+----------+----------------+
| post_id | meta_key | meta_value |
+---------+----------+----------------+
| 400 | book | mysql book |
| 500 | book | php book |
| 500 | dvd | animation |
| 400 | dvd | action |
+---------+-------------+----------+
i want to extract meta_key = 'book' with the meta_value 'mysql book' and meta_key = 'dvd' with meta_value 'action'.
they all have the same 'post_id' so i thought doing some JOIN but it didn't work for me.











Bookmarks