用 ' 搜索的时候出现如下报错,后台现实的输入关键词是 \' ,单并不是所有网站搜索都这个样。
报错 /core/library/think/db/Connection.php 第 389 行左右
[错误代码]
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 '%'' at line 1