I am working in codeigniter.
function create($data){
$this->db->insert(TBL_QUES, $data);
if($this->db->insert_id())
return true;
else
return false;
}
this is one of the function in my model. This is used to create/insert a record into database. But i can’t able to insert the text with comma to the database. I can’t able to find the error in this code.
Example Working Text: this is a string 1;
Example Not Working Text: this is a string 1, this is a string 2;
Am i have to escape the input?
I set the global filtering value equal to true.
Thanks to all
you may take help from this code for generating sql from csv