// Setup Query
$query = $this->db->query('SELECT * FROM here');
// Pull in the appropriate data for the model
$toolkitName = $this->toolkits_model->find_by('id', $id);
// Strip the commas from incoming array
$matchMeCommas = $toolkitName->toolkits_listitems;
$matchMe = explode(',', $matchMeCommas);
// Print ID for each item in toolkit parent list
foreach ($query->result_array() as $row) :
echo $row['id'];
endforeach;
// Match each item from toolkit list item
foreach ($matchMe as $row2) :
echo $row2;
endforeach;
What I'm trying to do is match the values from these two arrays and print the results from the parent list item. Currently what happens is that I get two strings of "234567891011" which relates to the ID (2, 3, 4, 5, ect).
I should add that I would want to match like values and pull results for that specific ID. So if the values 2 & 4 match I would want to retrieve their information from the DB and print it.
Any ideas? Thanks!