Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <?php
- //Error report
- ini_set('display_errors', true);
- error_reporting(-1);
- //Login
- $servername = "localhost";
- $username = "PG4104KT";
- $password = "jkm_PG4104KT";
- //Connect
- $conn = new mysqli($servername, $username, $password);
- //Check connection
- if ($conn->connect_error) {
- die("Connection failed: " . $conn->connect_error);
- }
- if (!$conn->select_db('PG4104KT')) {
- die("Connection failed: " . $conn->connect_error);
- }
- $id = $_GET['id'];
- mysqli_query($conn,"DELETE FROM skaitytojas WHERE id=".$id);
- header("Location: rezultatai1.php");
- ?>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement