Home >Backend Development >PHP Tutorial >php输出数据库信息,多了不该有的字符解决方法

php输出数据库信息,多了不该有的字符解决方法

WBOY
WBOYOriginal
2016-06-13 11:56:09733browse

php输出数据库信息,多了不该有的字符

<br /><?php<br /> include('conn.php');<br />  $result = mysql_query("SELECT * FROM data WHERE `grade`='大二' ORDER BY `downloads` DESC LIMIT 5");<br />  $info=mysql_fetch_array($result);			<br />    do{<br />		echo $info['link']."<br>";<br />        }<br />  while($info=mysql_fetch_array($result));<br /> ?>


然后输出

第一行的“?>”不应该有的呀,请问是怎么回事呢?
------解决方案--------------------
看看 conn.php

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