mysql单引号无法写入的问题

当提交的数据中存在单引号的时候数据库会提示语法错误。这可能是应为php没开启当转义字符参数。
php.ini中magic_quotes_gpc被设置为on时,提交的参数会被转义,例如,单引号会被转义成了。一下子截断了字符型注入的路。

关于笃志情缘

人尽其责,物尽其用,不成功,也无憾,毕竟奋斗过。走自己的路吧! 笃志建站:虚拟主机、域名注册、云主机、成品网站、企业邮局、CDN加速 http://www.duzhi.net QQ:3081689173
此条目发表在服务器相关分类目录,贴了标签。将固定链接加入收藏夹。

mysql单引号无法写入的问题》有20条回应

  1. Sidney说:

    So true. Hosnety and everything recognized.

  2. James说:

    This airtcle is a home run, pure and simple!

  3. Leiliane说:

    We could’ve done with that isnhigt early on.

  4. Efrain说:

    The truth just siehns through your post

  5. Ilkay说:

    That’s a skillful answer to a dfificlut question

  6. Jhon说:

    Hey, good to find sooemne who agrees with me. GMTA.

  7. Adelina说:

    You cuoldn’t pay me to ignore these posts!

  8. Jorgina说:

    Could you write about Physics so I can pass Scceine class?

  9. Mia说:

    That’s what we’ve all been waiting for! Great pstoing!

  10. Thong说:

    This insight’s just the way to kick life into this dbatee.

  11. Marilis说:

    Yeah that’s what I’m tailkng about baby–nice work!

  12. Hi, Neat post. There’s an issue with your site in web explorer, would check this

  13. Committeekal说:

    I think you hit a blsulyee there fellas!

  14. Crusmark说:

    Reading posts like this make srfuing such a pleasure

  15. Marine说:

    Well maacdmaia nuts, how about that.

  16. Burak说:

    You’ve mnaaegd a first class post

  17. Janae说:

    More posts of this qauitly. Not the usual c***, please

  18. Chima说:

    That’s a brilliant asenwr to an interesting question

  19. Jussara说:

    I was scrtuk by the honesty of your posting

  20. Abram说:

    If time is money you’ve made me a wealhteir woman.

评论已关闭。