• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to select DINSTINCT values

#1
[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();


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.