wrcspkkit

delete.php

May 5th, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.10 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <!-- jQuery library -->
  3. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
  4. <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
  5.  <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
  6.  
  7.  
  8.  <?php
  9.            
  10.                         session_start();
  11.                         $AlbumID = $_GET['album_id']; // Grab the album
  12.                                    
  13.                         $servername = "localhost";
  14.                         $username = "PKKIT";     // Set up the SQL server details.
  15.                         $password = "jeznicklogan";
  16.                         $dbname = "PKKIT";
  17.                         $AccountID = $_SESSION['AccountID'];
  18.                         // Create connection
  19.                         $conn = new mysqli($servername, $username, $password, $dbname);
  20.  
  21.                         // Check connection
  22.                         if ($conn->connect_error) {
  23.                             die("Connection failed: " . $conn->connect_error);
  24.                          }
  25.  
  26.                         $sql = mysqli_query($conn, "DELETE FROM album_perm WHERE album_id='$AlbumID'"); // DELETE Album for Every user
  27.  
  28.  
  29.  
  30.            
  31. ?>
  32.    <script>
  33.  
  34.  
  35. window.location='myphotos.php?';
  36.   </script>
  37.  
  38. </head>
  39.  
  40. <body>
Advertisement
Add Comment
Please, Sign In to add comment