Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. <?php
  2. include "DBheader.php";
  3. if(isset($_POST["tak"]))
  4. {
  5. $id = $_GET['id'];
  6. $query= mysql_query("DELETE FROM lab WHERE id='$id'");
  7. if($query){} else echo "blad zapytania 1".mysql_error();
  8. $wiersz = mysql_fetch_assoc($result);
  9. if($wiersz){} else echo "blad zapytania 2".mysql_error();
  10. header('location:index.php?strona=4&opcja=6');
  11. }
  12.  
  13.  
  14. echo"Czy na pewno chcesz usun±ć?";
  15.  
  16. ?>
  17. <table>
  18. <tr>
  19. <td><form method="POST" action="index.php?strona=6&opcja=6<?php echo '&id='.$_GET['id'] ?>">
  20. <input type ="submit" name="tak" value="tak">
  21. </form></td>
  22. <td> </td>
  23. <td><form method="POST" action="index.php?strona=6&opcja=6">
  24. <input type ="submit" name="nie" value="nie">
  25. </form> </td>
  26. </tr>
  27. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement