Codeigniter ActiveRecord: Where Clause with custom string -
i search following string using ci active records.
click on event or booking code use.
my query follows:
$this->db->selet("id"); $this->db->where("column_name", "click on event or booking code use."); $this->db->from("table_name") $ret = $this->db->get(); but doesn't work since ci escape string , produce select query follows:
select
idtable_namecolumn_name= 'click on event orbooking code youwoulduse.'
is there workaround issue?
this should work:
$this->db->where("column_name = 'click on event or  booking code use.'", null, false); 
Comments
Post a Comment