[eluser]coldfire82[/eluser]
[quote author="WanWizard" date="1276214970"]I assume you're using Active record to create the query?
It's best to split the variable:
Code:
$this->module->saverecord('d_user_detail', $arr1, "d_user_detail.userid", $userid);
so you can feed these values to $this->db->where() properly. The parser of the AR library is very simple, it can't handle a lot of where clauses, causing backticks to be inserted in the wrong place (as you have noticed). Alternatively, use the third parameter of the where() method to disable escaping.[/quote]
ActiveRecord! whats the alternate .
Here, I have to deal with more than just one variable in where clause like
Code:
$this->module->saverecord('d_user_detail', $arr1, "d_user_detail.userid=".$userid." AND x_id='1'");
and I dont want to use array('key=>'.value)pair,
then what i have to do?