Skip to content

Instantly share code, notes, and snippets.

Created May 17, 2011 14:44
Show Gist options
  • Save anonymous/976609 to your computer and use it in GitHub Desktop.
Save anonymous/976609 to your computer and use it in GitHub Desktop.
$rels = $this->db->select('rel_parent')->where('rel_child', $userid)->where('rel_type', 'favourite')->from('content_relationships')->get();
foreach ($rels->result_array() as $row)
{
$content_ids[] = $row['rel_parent'];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment