<?php
include("comm.php");
?>
<table width=500 border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#add3ef">
<?php
$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>
<?php
}
?>
</table>
以上是按照教程写的,但是在网页上打开显示不出来数据库里的东西,都是空的这是为什么??
图片