background image

 $query=  mysql_query($sql);

//循环显示留言
 while($row=  mysql_fetch_array($query))
 {
 ?>
  <tr bgcolor="#eff3ff">
  <td>标题:<?=$row[title]?> 用户:<?=$row[user]?> </td>
  </tr>
  <tr bgColor="#ffffff">
  <td>内容:<?=htmtocode($row[content])?> </td>
  </tr>
  <?
   }
   ?>
</table>

//head.php

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<link href="images/css.css" rel="stylesheet" type="text/css">
<b><a  href="add.php"> 添 加 留 言 </a>  |   <a  href="list.php"> 浏 览 留 言 </a>    |   <a 
href="login.php">登陆</a> </b>
<hr size=1>

//add.php

 <?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */