Your IP : 216.73.216.26


Current Path : /home2/wtmwscom/public_html/admin/
Upload File :
Current File : /home2/wtmwscom/public_html/admin/product_page_delete.php

<?php
session_start();
include('../connection.php');
include '../function_lib.php';

$res = "DELETE FROM `product_kit` WHERE `pid`='" . $_GET['product_id'] . "'";
if (mysqli_query($connection, $res)) {
    $smallPath = "./images/product_gallary/";
    unlink($smallPath.$_GET['filename']);
    setMessage('Product deleted successfully.', 'alert-success');
}
redirect('product_page.php');
?>