日期:2014-05-17 浏览次数:20480 次
<?php //引用文件 include("conn.php"); ?> <table width = "500" align = "center" bgcolor = #add3ef> <?php $sql = "SELECT * FORM message"; $query = mysql_query($sql); whiel($row = mysql_fetch_array($query)) { ?> <tr bgcolor = #eff3ff> <td>标题:<?php = $row[title]?> 用户:<?php = $row[user]?></td> </tr> <tr bgcolor = #ffffff> <td>内容:<?php = $row[content]?></td> </tr> <?php } ?> </table>
<?php //引用文件 include("conn.php"); ?> <table width = "500" align = "center" bgcolor = #add3ef> <?php $sql = "SELECT * FORM message"; $query = mysql_query($sql); while($row = mysql_fetch_array($query)) { ?> <tr bgcolor = #eff3ff> <td>标题:<?php echo $row['title']?> 用户:<?php echo $row['user']?></td> </tr> <tr bgcolor = #ffffff> <td>内容:<?php echo $row['content']?></td> </tr> <?php } ?> </table>