<?php
require_once('../../include/class.inc.php'); 

$id=$_GET["id"];  
$content=$_POST["content"]; 

if($content!="") {
    $sql="update foot set content='$content' where id=$id";
//	echo $sql;
//	exit;
	$result=mysql_query($sql);
		if($result)
		{
			echo "<script>alert('ÐÞ¸Ä³É¹¦£¡');location.href='foot.php'</script>";
		}
		else
		{
			echo "<script>alert('ÐÞ¸ÄÊ§°Ü£¡');location.href='foot.php?id=".$id."'</script>";	
		}

}

?>