File "wallet-controller.php"

Full Path: /home/quiczmwg/lightspringdigitals.com/admin/database/wallet-controller.php
File size: 530 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
include_once ("../_db.php");

@session_start();
// if (isset($_GET['delete'])){
    $delete_id = $_GET['delete'];
    $delete_query = mysqli_query($conn, "DELETE FROM wallet WHERE id = $delete_id ") or die('query failed');
    if ($delete_query){
        header('location: manage-wallet.php');
        $message[] = 'product has been deleted';
        
    } else {
        header('location: manage-wallet.php');
        $message[] = 'product could not be deleted';
        // header('location: service-details.php');
    };