<?php
header( 'Content-Type:text/html;charset=utf-8 ');
 include_once("conn/conn.php");
 $id=$_GET["id"];

 $sql='delete from user where id='.$id;
 $r=mysqli_query($link,$sql);
 if($r){
  // echo "成功,点击<a href='index_ok.php'>返回</a>";
  echo 1;
 }else{
  // echo "<script>alert('删除失败');history.back();</script>";
  echo 0;
 }

posted on 2017-11-27 16:40  PHP`reader  阅读(143)  评论(0编辑  收藏  举报