开发者

When I inserting AT&T it will add semicolon in code igniter

开发者 https://www.devze.com 2023-01-22 11:32 出处:网络
Whenever I was inserting AT&T to database it was added as AT&T; semicolon is added extra 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消