CodeIgniter Forums
Trying to select DINSTINCT values - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Trying to select DINSTINCT values (/thread-46538.html)



Trying to select DINSTINCT values - El Forum - 11-04-2011

[eluser]jvk22[/eluser]
I'm trying to select dinstinct values for a search function, however its selecting values with the same name more then once.


Code:
$this->db->like('domain_name',$domain_name);
  $this->db->distinct();
  $query = $this->db->get('complaints');
  return $query->result();