<?php
$id=$_POST['id'];
$title=$_POST['title'];
$date=date('Y-m-d H:i:s');
$author=$_POST['author'];
$content=$_POST['content'];
$link=mysql_connect("localhost","root","");
mysql_select_db("Infabate",$link);
$rel="update contnet set title='$title',author='$author',date='$date',content='$content' where id=$id";
$query=mysql_query($rel);
if($query)
{
echo "succee!";
}
else
{
echo "fail";
}?>为什么$query会执行失败,搞不懂...