Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的数据库中插入一行包含文本。
如果其中包含“&”符号,则记录无法插入。
文本取自网页 textarea,网页字符集为 utf-8
我的数据库架构是 MyIsam 和排序规则 latin1_swedish_ci
> 和 < 符号也无法插入
任何人都可以建议吗?
提前致谢
如果您使用mysql_ 函数,请使用mysql_real_escape_string()转义它们,或者使用 PDO 准备查询。