Welcome Guest, Not a member yet? Register   Sign In
$this->db->like
#6

[eluser]Yash[/eluser]
that's really nice code arume. and thank you Too Pixel.

I want to search a exact string in a field.
Actually I'm searching text in a field and giving id for that field.So I can have many ids for given text.

My code

Code:
//$cat   - search string
$temp="";
$this->db->where('Cat', $cat);
$query = $this->db->get('table');
foreach($query->result() as $row)
{
   $temp[] = $row->ID;
}
return $temp;


Messages In This Thread
$this->db->like - by El Forum - 07-15-2008, 05:52 AM
$this->db->like - by El Forum - 07-15-2008, 06:00 AM
$this->db->like - by El Forum - 07-15-2008, 06:19 AM
$this->db->like - by El Forum - 07-15-2008, 07:45 AM
$this->db->like - by El Forum - 07-16-2008, 02:02 AM
$this->db->like - by El Forum - 07-16-2008, 03:30 AM
$this->db->like - by El Forum - 07-16-2008, 03:38 AM
$this->db->like - by El Forum - 07-16-2008, 04:46 AM
$this->db->like - by El Forum - 07-16-2008, 04:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB