我在这里使用搜索脚本:http://www.maiansearch.com/
脚本在localhost上运行正常,但在活动主机上显示以下错误。
> 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 'MATCH (title,description,keywords) AGAINST('somesearchterm' at line 1
活动主机上的Mysql版本是5.1
这是脚本中指向错误的部分
$sCount=rowCount('search_pages','WHERE MATCH(title,description,keywords) AGAINST(\''.safeImport($searchterm).'\' IN BOOLEAN MODE)');
$s_query=mysql_query("SELECT * FROM ".$database['prefix']."search_pages WHERE MATCH(title,description,keywords) AGAINST ('".safeImport($searchterm)."' IN BOOLEAN MODE) ORDER BY title LIMIT $limit,$SETTINGS->total") or die(mysql_error());
有什么问题?