I am working in codeigniter. I have two table job_post and snapshot.I have written query to fetch data from above table like :
Query1 :
select skill from snapshot where user_id = 1
and it gives and array like :
Array
(
[0] => stdClass Object
(
[skill] => 1,2
)
)
Query2 :
select emp_id,skill from job_post
and this query return array like this :
Array
(
[0] => stdClass Object
(
[emp_id] => 10
[skill] => 1,2,3
)
[1] => stdClass Object
(
[emp_id] => 10
[skill] => 3,12,13
)
)
Now, I want to match these to array. If query1 skill match with the query2 skill then its return emp_id. So how can I get that emp_id?
Note : Partical match with query1 and query2