<?php
include("conn.php");
?><table width=500 border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#add3ef">
<?php
$sql = "SELECT * FROM message order by id DESC";
$query = mysql_query($sql);
while($row = mysql_fetch_array($query))
{
echo $row[title] . " " . $row[user]." ";
?>
<tr bgcolor="#eff3ff">
<td>标题:<?=$row[title]?> 用户:<?=$row[user]?></td>
</tr>
<tr bgColor="#ffffff">
<td>内容:<?=$row[content]?></td>
</tr>
<?php
}
?>
</table>
为什么echo时输中$row中值是对的,但是放在html中为什么会显示不出来
<td>标题:<?php echo $row['title']; ?> 用户:<?php echo $row['user']; ?></td>
</tr>
<tr bgColor="#ffffff">
<td>内容:<?php echo $row['content']; ?></td>
</tr>