Advertisement
Guest User

Untitled

a guest
Jan 27th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <html>
  2.  
  3. <?php
  4. //Error report
  5. ini_set('display_errors', true);
  6. error_reporting(-1);
  7. //Login
  8. $servername = "localhost";
  9. $username = "PG4104KT";
  10. $password = "jkm_PG4104KT";
  11. //Connect
  12. $conn = new mysqli($servername, $username, $password);
  13. //Check connection
  14. if ($conn->connect_error) {
  15. die("Connection failed: " . $conn->connect_error);
  16. }
  17.  
  18. if (!$conn->select_db('PG4104KT')) {
  19. die("Connection failed: " . $conn->connect_error);
  20. }
  21. $id = $_GET['id'];
  22. mysqli_query($conn,"DELETE FROM skaitytojas WHERE id=".$id);
  23. header("Location: rezultatai1.php");
  24.  
  25.  
  26. ?>
  27.  
  28. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement