<?php
	include 'conn/conn.php';
	$id = $_GET['id'];
	$selectsql = "select id,title,content from tb_mess where id = ".$id;
	$rst = mysql_query($selectsql);
	if(mysql_num_rows($rst) == 1){
	$rstarr = mysql_fetch_row($rst);
?>
<div id="mess">
	<ul>
	<form method="post" action="mod_chk.php">
		<?php if($rstarr[1] != ''){ ?><li>修改主题：<input id="title" name="title" type="text" value="<?php echo $rstarr[1]; ?>" /></li><?php } ?>
	  <li>修改内容：<textarea name="cont" rows="10" cols="50"><?php echo $rstarr[2]; ?></textarea></li>
	  <li style="height: 5px;"></li>
	  <li style=" text-align:center;"><input id="id" name="id" type="hidden" value="<?php echo $id; ?>" /><input id="submit" name="submit" type="submit" value="修改" /></li>
	</form>
	</ul>
</div>
<?php
	}
?>

