a guest Jun 16th, 2019 105 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. require("head.php");
  3. $data = $_GET;
  4. echo $data['id'];
  5. $host='localhost';
  6. $database='MySiteDB';
  7. $user='admin';
  8. $pswd='admin';
  9. $link= mysqli_connect($host, $user, $pswd, $database) or die("Не могу соединиться с MySQL.");
  10. $query = "DELETE FROM `notes` WHERE `notes`.`id` = $data[id] ";
  11. $res = mysqli_query($link,$query);
  12. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand