Home  >  Article  >  Backend Development  >  php输出数据库信息,多了不该有的字符

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

WBOY
WBOYOriginal
2016-06-23 13:57:50784browse

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


然后输出

第一行的“?>”不应该有的呀,请问是怎么回事呢?


回复讨论(解决方案)

看看 conn.php

看看 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