我有这个简单的字符串变量:
$query="SELECT * FROM striscie AS previous, striscie AS current WHERE previous.linea=current.linea AND current.ident=$striscia AND previous.position<current.position AND previous.position>current.position-$stops";
然而,当我回应或使用它时,它转向:
SELECT * FROM striscie AS previous, striscie AS current
WHERE previous.linea=current.linea AND current.ident=897524 AND previous.positioncurrent.position-3
SELECT * FROM striscie AS previous, striscie AS current
WHERE previous.linea=current.linea AND current.ident=920173 AND previous.positioncurrent.position-2
删除字符串的整个部分。我尝试重启Apache无济于事。可能是什么?
答案 0 :(得分:8)
<
被浏览器视为HTML。不要盲目输出这样的东西。