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

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

WBOY
Release: 2016-06-13 11:56:09
Original
732 people have browsed it

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 /> ?>
Copy after login


然后输出

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template