![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
include "connect.php";
$sql="update guestbook set g_reply='$textarea2',g_date2=now() where g_id='$id'";
$res=mysql_query($sql);
if($res==false)
{
echo "<script language=javascript>alert('回复内容失败!');document.location='adminguest.php';</script>";
}
else{
echo "<script language=javascript>alert('回复内容成功!');document.location='adminguest.php';</script>";
}
////////////////////////////////////////////////////
include "connect.php";
$sql="delete from guestbook where g_id='$id'";
$res=mysql_query($sql);
if($res==false)
{
echo "<script language=javascript>alert('删除失败!');document.location='adminguest.php';</script>";
}
else{
echo "<script language=javascript>alert('删除成功!');document.location='adminguest.php';</script>";}

