/var/www/(Del)rep-gaming.com/webadmin/product_detail_delete.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
include 'config.php';

// Check if the user is logged in

if ((!isSet($_SESSION['loginname'])) || ($loggin <> '1'))
{
header("Location: login.php");
exit;
}
require(
"configure.php");

$prosubid        $_GET['prosubid'];
$productid        $_GET['productid'];

$sql "DELETE FROM product WHERE productid="$productid ." ";

mysql_query($sql);
mysql_close($dbh);

header("Location: product_detail_index.php?prosubid=".$prosubid."&msg=Update Successful");


?>