Whenever I was inserting AT&T to database it was added as AT&T; semicolon is added extra in code igniter.
My code is like this:
$this->input->post('carrier_name');
$this->db->insert('cs_carrier',$insert);
please suggest.
Whenever I was inserting AT&T to database it was added as AT&T; semicolon is added extra in code igniter.
My code is like this:
$this->input->post('carrier_name');
$this->db->insert('cs_carrier',$insert);
please suggest.
In case someone comes across this later. I ran into this issue today, and it turns out it was the xss_clean function within CI. I opted not to use it and used filter_var instead.
replace any special character like & = & then you can store into database.Anyway another things.Please make your data field text type otherwise it don't take any special char.