Welcome Guest, Not a member yet? Register   Sign In
get() in N:N relationship with an array of IDs
#1

[eluser]tarciozemel[/eluser]
Hi, people!

I have a N:N relationship between companies and segments, and exists a 3rd table with id, Company_id and Segment_id fields.

In a part of the code, I got some segments IDs in store that in an array $segments_ids. So, my (maybe dummie) question is: how can I get all the companies in wich those segments correspond to the segment IDs in the array?

Regards!




Theme © iAndrew 2016 - Forum software by © MyBB