Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "DBheader.php";
- if(isset($_POST["tak"]))
- {
- $id = $_GET['id'];
- $query= mysql_query("DELETE FROM lab WHERE id='$id'");
- if($query){} else echo "blad zapytania 1".mysql_error();
- $wiersz = mysql_fetch_assoc($result);
- if($wiersz){} else echo "blad zapytania 2".mysql_error();
- header('location:index.php?strona=4&opcja=6');
- }
- echo"Czy na pewno chcesz usun±ć?";
- ?>
- <table>
- <tr>
- <td><form method="POST" action="index.php?strona=6&opcja=6<?php echo '&id='.$_GET['id'] ?>">
- <input type ="submit" name="tak" value="tak">
- </form></td>
- <td> </td>
- <td><form method="POST" action="index.php?strona=6&opcja=6">
- <input type ="submit" name="nie" value="nie">
- </form> </td>
- </tr>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement