Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host ="localhost";
- $user ="root";
- $password ="root";
- $database ="paradisehotel";
- $connection = mysqli_connect($host, $user, $password, $database)or die(mysqli_error($connection));
- $charset = mysqli_set_charset($connection, "utf8");
- $id = $_GET['hotel_id'];
- $sql = "DELETE FROM hotel WHERE hotel_id= $hotel_id";
- $result = mysqli_query($connection, $sql) or die(mysqli_error($connection));
- header("location: index.php");exit;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement