keep textarea input format after using mysql_real_escape_string to store

前端 未结 5 1018
时光说笑
时光说笑 2021-01-14 05:05

I am using php5.3.6 and mysql 5.1.56 and CodeIgniter. Here is what I did.

  1. Input some text in textarea, something like this:


    what\'s this?

5条回答
  •  没有蜡笔的小新
    2021-01-14 05:51

    This really does feel a lot like magic_quotes_gpc = On. Are you disabling it in php.ini or at runtime? It needs to be the former, otherwise it'll remain on.

    http://www.php.net/manual/en/security.magicquotes.disabling.php

    The magic_quotes_gpc directive may only be disabled at the system level, and not at runtime. In otherwords, use of ini_set() is not an option.

提交回复
热议问题