It would be something like this:
PHP Code:
public function give($from,$where=array())
{
$db = \Config\Database::connect();
$builder = $db->table($from);
$giveme = $builder->from($from)->where($where)->get()->getResultArray();
return $giveme;
}
Did not have the time to test it, but give it a go.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )