<?php
error_reporting(0);
@session_start();
include("config.php");
$point=$_POST[point];
$mobile=$_POST[mobile];
$cid=$_POST[cid];
$flag = $_REQUEST[flag];
$mode = $_REQUEST[mode];
$wdte = date("Y/m/d");
/***********************************/
  
  
       $newpont = $point - $point;

          $query_up=sprintf("UPDATE customer_product_point SET 
		  point='$newpont',wdte='$wdte' WHERE cid='%d' ", $cid); 
		  if(!($resu=mysql_query($query_up))){echo $query_up.mysql_error(); exit;}
          header("Location:record.php?mobile=$mobile");
		  exit;

?>
