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

留言板读取出问题了,求指导
<?php  
  include("conn.php");  
?>  
<table width=500 border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#add3ef">  
<?php     
  $sql = "SELECT * FROM message order by lastdate desc";  
  $query = mysql_query($sql);  
  while($row = mysql_fetch_array($query)){  
?>  
  
  <tr bgcolor="#eff3ff">  
  <td><b><big>  
    标题:<?= $row['title']?></big><b/>     <b><sub>  
    用户:<?= $row['user']?></sub></b></td>  
  </tr>  
  <tr bgColor="#ffffff">  
  <td>内容:<?= toHtmlcode($row['content'])?></td>  
  </tr>  
<?php   
  }  
?>  
</table>  
  
------解决方案--------------------
<td>内容:<?= toHtmlcode($row['content'])?></td>