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 id table_name column_name = 'click on event or booking code you would use.'

is there workaround issue?

this should work:

$this->db->where("column_name = 'click on event or  booking code use.'", null, false); 

Comments

Popular posts from this blog

ios - Is 'init' forbidden as *part* of a variable name? -

angular - Angular2 Router: Cannot find primary outlet to load 'HomeComponent' -

javascript - Why Selenium can't find an element that is graphically visible -