日期:2014-05-16  浏览次数:20527 次

php里传递一个MYSQL语句的奇怪问题
我有这样一个语句
$sql = "select * from tb2300 where qty2<qty order by cno";
然后我执行echo $sql;
页面显示只有
select * from tb2300 where qty2
这个是什么情况?

mysql4.1.10
apache2.0
php 5.2.4

------解决方案--------------------
正常,是浏览器的原因
非 IE 浏览器似乎都这样
原因是 select * from tb2300 where qty2<qty order by cno
套红的部分被当做 html 标记了,由于未结束,连查看源文件也看不到