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');的 我想在用填什么我就将其保存到数据库,在保存需要保证安全(转化),但是读出来就有用输入的原样 比如 用户 输入 入库后 输出还是 我希望存库时时这种的<p>gdsfgsdf'dfdf <p>fdgvsd'dfsdf&a 谢谢大神们 求帮 谢谢 |