Skip to content

Instantly share code, notes, and snippets.

@denvers
Created October 23, 2012 06:18
Show Gist options
  • Save denvers/3937153 to your computer and use it in GitHub Desktop.
Save denvers/3937153 to your computer and use it in GitHub Desktop.
EE MySQL DB selector/query
<?php
$data = array();
$query = $this->EE->db->select('member_id')
->from('db_table')
->where('entry_id', $entry_id)
->where_in('dummy_column', array_keys($another_data))
->get();
foreach( $query->result() as $row )
{
$data[] = $row->member_id;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment