Guest User

Untitled

a guest
Nov 21st, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <html lang="pl">
  2. <head>
  3. <meta charset="utf-8" />
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  5. <title>Przychodnia - baza lekarzy</title>
  6.  
  7. </head>
  8. <?php
  9. require_once "dbconnect.php";
  10.  
  11. if(isset($_GET['del'])){
  12. $id = $_GET['del'];
  13. $delete_row=mysqli_query("DELETE from pacjenci WHERE id='$del[idlekarza]'");
  14. if($delete_row)
  15. {
  16. echo "Row deleted";
  17. echo "<br />";
  18. echo"<meta http-equiv='refresh' content='5;url=PrzegladajLekarzy.php'>";
  19. }else{
  20. echo "Błąd.";
  21. echo "$id";
  22. }
  23.  
  24. }
  25.  
  26. ?>
Add Comment
Please, Sign In to add comment