Home >php教程 >PHP源码 >PHP+DBM的同学录程序(2)

PHP+DBM的同学录程序(2)

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-08 17:30:441196browse
<script>ec(2);</script>

3、删除成员del.PHP3

require("common.PHP3");
$id=chop($id);
if(!isset($id))error("请输入要删除的用户ID !");
elseif($pwd$adminpass)error("管理员密码错误!");
else{
  $data=DBMopen("class","w");
  DBMdelete($data,$id);
  DBMclose($data);
  $data=DBMopen("password","w");
  DBMdelete($data,$id);
  DBMclose($data);
  header("location:index.PHP3");
}
?>

4、公用文件common.PHP3

$adminpass="test";
function error($msg){
?>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php把ubb代码转换成htmlNext article:php+ajax分页代码