班级成员留言簿管理: class/notebook/delnote.php
<?php
session_start();
if(!session_is_registered("superlogin"))//检查是否注册
{
echo "请重新进行管理员登陆
";
exit;
}
include ("../config.php");
if($del==1){ //判断是否要删除
mysql_query("delete from notebook where time='$time'",$db); //以留言时间为删除标志
echo "删除成功!";
}
?>
删除留言
0){$x=($max%10);} else {$x=10;}//如果是最后一页,且不是10的整倍数,读取$max除以10的余数,否则取10
if($max==0){$x=0;}//如果没有帖子,$x取0
$result = mysql_query("select * from notebook ORDER BY time DESC limit $low,$x",$db);
?>
|
";
echo " | ";
echo "留言人:$name | ";
echo "发表于:$time | ";
echo " | ";
echo " $ip |
";
echo "标题:$title |
";
echo "留言内容:$nnote |
";
}
mysql_close($db);
?>
客人留言簿管理: class/notebookg/delnote.php
请重新进行管理员登陆
";
exit;
}
include ("../config.php");
if($del==1){ //判断是否要删除
mysql_query("delete from notebookg where time='$time'",$db); //以留言时间为删除标志
echo "删除成功!";
}
?>
删除留言
0){$x=($max%10);} else {$x=10;}//如果是最后一页,且不是10的整倍数,读取$max除以10的余数,否则取10
if($max==0){$x=0;}//如果没有帖子,$x取0
$result = mysql_query("select * from notebookg ORDER BY time DESC limit $low,$x",$db);
?>
|
";
echo " | ";
echo "留言人:$name | ";
echo "发表于:$time | ";
echo " | ";
echo " $ip |
";
echo "标题:$title |
";
echo "留言内容:$nnote |
";
}
mysql_close($db);
?>