When I inserting AT&T it will add semicolon in code igniter
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-&g开发者_JAVA技巧t;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.
精彩评论