I have an insert in columns with single quotes. Since $this->db->query already executes the whole special character. But my problem is that I insert data such as ganesh , when the insert occurs, only ganesh is added; data after single quotes is missing. So I started using $this->db->escape , but this adds single quotes to my data that are not required, how to prevent this.
my code
$sql="insert into tablename (list_name,list_address) values(?,?)" $res=this->db-query($sql,array($name,$add));
My mistake was in the front. Not the back end. I will delete the question.
source share