PHP execute SQL statement

From , 5 Years ago, written in PHP, viewed 91 times.
URL https://pastebin.vip/view/36144052
  1. <?php
  2.         session_start();
  3.         include 'conn/conn.php';
  4.         $id=$_GET['id'];
  5.         $delsql = "delete from tb_mess where id = ".$id;
  6.         $rst = mysql_query($delsql);
  7.         if(mysql_affected_rows() == 1){
  8.                 echo "<script>alert('删除成功');location='".$_SERVER['HTTP_REFERER']."';</script>";
  9.         }else{
  10.                 echo "<script>alert('已删除');location='".$_SERVER['HTTP_REFERER']."';</script>";
  11.         }
  12. ?>

Reply to "PHP execute SQL statement"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website