<?php
/*
 * Created on 2011-12-23
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 include("conon.php");
?>
<table width=500 border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#add3ef">
<?
$sql="select *from message";
$query=mysql_query($sql);
while($row=mysql_fetch_array($query))
{
?>
<tr bgcolor="#eff3ff">
  <td>标题:<?=$row[title]?> 用户:<?=$row[user]?></td>
  </tr>
  <tr bgColor="#ffffff">
  <td>内容:<?=$row[content]?></td>
  </tr>
<?
}
?>
</table>

解决方案 »

  1.   

    到你的mysql 终端执行一下 你的SELECT * FROM message. 如果正常的话 将php.ini的错误提示打开 看出现什么错误就知道了。
      

  2.   

    按你的方法作了,但还是发现不了错误啊,而且php语句执行无误,就是显示不出来通过留言提交的数据库列表!
      

  3.   

    我怎么感觉星号和from之间没有空格呢,另别使用短标记
      

  4.   

    把你的sql语句ECHO出来到MYSQL执行看看?