<?php
include("admin.php");
$rst=mysql_query("SELECT * FROM `".$ad."sjadmin` WHERE `name` LIKE '{$_SESSION['name']}'");
$rwt=mysql_fetch_assoc($rst);
$id=$_GET['id'];
if($_GET['id']){
mysql_query("DELETE FROM `".$ad."sjadmin` WHERE `".$ad."sjadmin`.`id` ='{$id}' LIMIT 1;");
echo "<script language=javascript>  
alert( \"恭喜你，管理员删除成功\"  );
location.href = \"admin_show.php\"
</script>";
}else

echo "对不起，找不到你要的数据库";

?>