Advertisement
Guest User

Untitled

a guest
Mar 18th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php
  2.  
  3. $host ="localhost";
  4. $user ="root";
  5. $password ="root";
  6. $database ="paradisehotel";
  7.  
  8. $connection = mysqli_connect($host, $user, $password, $database)or die(mysqli_error($connection));
  9.  
  10. $charset = mysqli_set_charset($connection, "utf8");
  11.  
  12. $id = $_GET['hotel_id'];
  13. $sql = "DELETE FROM hotel WHERE hotel_id= $hotel_id";
  14. $result = mysqli_query($connection, $sql) or die(mysqli_error($connection));
  15.  
  16. header("location: index.php");exit;
  17.  
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement