insert into cz_game_account_ios(role, contact_way, qufu, qufu_type, account,password) value('fgh'ggg', '18825156665', 'fgh'ggg', '', 'fgh'ggg', 'fgh''ggg'):(SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ggg', '18825156665', 'fgh'ggg', '', 'fgh'ggg', 'fgh''ggg')' at line 2我是用thinkphp框架的 我的变量是有 I('post.name');的 我想在用填什么我就将其保存到数据库,在保存需要保证安全(转化),但是读出来就有用输入的原样 比如 用户 输入 <script>alert('fgs'dfg')</script> 入库后 输出还是 <script>alert('fgs'dfg')</script> 我希望存库时时这种的<p>gdsfgsdf&#39;dfdf &nbsp;&lt;p&gt;fdgvsd&#39;dfsdf&a 谢谢大神们 求帮 谢谢
- 3 回答
- 0 关注
- 2855 浏览
添加回答
举报
0/150
提交
取消