我有以下声明:
SELECT bname,cnum,vnum, MATCH(vtext) AGAINST (''".$word."'') as relevance FROM kjv WHERE MATCH(vtext) AGAINST (''".$word."'') AND bnum='".$book."' ORDER by relevance DESC, bnum, cnum, vnum LIMIT 0,1");
它返回空行,但如果我用硬编码值替换变量,一切都会通过。这些变量不为空,我知道是因为我在将它们输入框中后将它们输出到页面。谢谢