PHP代码修改的信息没有一点反应,成功也不提示,失败也不提示?,这是为什么,其中的一部分代码的如下
if ($_FILES['img']['name']==""){
$sql1="UPDATE `news`.`news` set title='{$_POST[title]}',content='{$_POST[content]}',author='{$_POST[author]}',t='{$date}' where id = {$_GET[id]}";}
else
$sql1="UPDATE `news`.`news` set title='{$_POST[title]}',content='{$_POST[content]}',author='{$_POST[author]}',img='{$_POST[img]}',t='{$date}' where id = {$_GET[id]}";
if(mysql_query($sql1))
{
echo "<div align=\"center\" class=\"title\">修改新闻成功!<br><br><a href='news.php?page=1'><img src='images/looknews.gif' border=\"0\"/></a></div>";
}
else
{
"<div align=\"center\" class=\"title\">修改新闻失败!重新修改请单击<a href='newsedit.php?id={$_GET[id]}><img src=\"images/return.gif\" border=\"0\"/></a></div>";
}
}
?>