Recently I am developing little question generation program on PHP. It uses some LaTeX formatted math formulas.
I've described this issue here :
Backslashes are auto-removed while inserting LaTeX formulas to MySQL with PHP
I found a solution by using mysql_real_escape_string(). But this arises another question.
通常,此功能是专门为清除用户输入而设计的,并且应始终按照文档使用: http : //php.net/manual/en/function.mysql-real-escape-string.php
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.