SHARE
TWEET

Untitled

a guest Jun 19th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <?php
  2.  
  3.         $wynik = $_GET["id"];
  4.  
  5.         $sql = "DELETE FROM autor_has_ksiazka WHERE ksiazka_id_ksiazka = $wynik";
  6.  
  7.         if ($conn->query($sql) === TRUE) {
  8.             $sql1 = "DELETE FROM ksiazka WHERE id_ksiazka = $wynik";
  9.  
  10.             if($conn->query($sql1) === TRUE) {
  11.                 echo "Record deleted successfully";
  12.             }
  13.         } else {
  14.             echo "Error updating record: " . $conn->error;
  15.         }
  16.  
  17.     ?>
  18.  
  19. </center></body>
RAW Paste Data
Top