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

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -