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