![]() |
active record for like without wildcard is not work - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: active record for like without wildcard is not work (/showthread.php?tid=47779) |
active record for like without wildcard is not work - El Forum - 12-21-2011 [eluser]kreamik[/eluser] i do this : Code: $this->db->like('parent_id',$parent_id,'none'); i hope this query will be : Code: where 'parent_id' like '$parent_id' but i got : Code: where 'parent_id' like '%$parent_id%' i see on : codeigniter\system\database\DB_active_rec.php method : _like no more case for state : 'none' i use : CI_2.1.0 is this bug? |