Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <!-- jQuery library -->
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
- <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
- <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
- <?php
- session_start();
- $AlbumID = $_GET['album_id']; // Grab the album
- $servername = "localhost";
- $username = "PKKIT"; // Set up the SQL server details.
- $password = "jeznicklogan";
- $dbname = "PKKIT";
- $AccountID = $_SESSION['AccountID'];
- // Create connection
- $conn = new mysqli($servername, $username, $password, $dbname);
- // Check connection
- if ($conn->connect_error) {
- die("Connection failed: " . $conn->connect_error);
- }
- $sql = mysqli_query($conn, "DELETE FROM album_perm WHERE album_id='$AlbumID'"); // DELETE Album for Every user
- ?>
- <script>
- window.location='myphotos.php?';
- </script>
- </head>
- <body>
Advertisement
Add Comment
Please, Sign In to add comment