Home  >  Article  >  Backend Development  >  php里传递一个MYSQL语句的奇怪有关问题

php里传递一个MYSQL语句的奇怪有关问题

WBOY
WBOYOriginal
2016-06-13 11:52:48854browse

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

mysql4.1.10
apache2.0
php 5.2.4

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn