<?php
error_reporting(0);
@session_start();
include("../config.php");

	

$flag = $_REQUEST[flag];
$mode = $_REQUEST[mode];
/***********************************/

	$id= $_GET[id];	
	
	$query=sprintf("Delete from customer where id ='%d'", $id);
	if(!($result=mysql_query($query))){echo mysql_error($query); exit;}
	
	$query=sprintf("Delete from customer_product_point where cid ='%d'", $id);
	if(!($result=mysql_query($query))){echo mysql_error($query); exit;}
	
	
	header("Location:customers-list.php?flag=del");
	exit;


?>
