0

Hello

delete record not working

if(isset($_POST['delete'])) {
        $ida    = $_GET['delete']; 
        $coupen = $_GET["code"];

        $update_query = "delete from shortenedurls where id=".$ida;
        $query        = mysqli_query($connection, $update_query);

        if($query) {
            header('Location: ../coupon.php?id='.$id.'&code='.$coupen);
            exit();
        } else {
            header('Location: ../update_link.php?id='.$id.'&code='.$coupen);
            exit();
        }
    }
3
Contributors
3
Replies
12
Views
2 Years
Discussion Span
Last Post by UK-1991
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.