Advertisement
Guest User

Untitled

a guest
Apr 24th, 2013
4,568
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. <?php
  2.  
  3. $id = $_POST['id'];
  4.  
  5.  $dbc = mysqli_connect('localhost', 'root', '', 'moja_baza') or die('Connection error!');
  6.  
  7.  
  8.  
  9. $query = "DELETE FROM tablica WHERE id = '$id'";
  10. mysqli_query($dbc, $query) or die('Database error!');
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.                         ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement