<?php 
include "config.php";
session_start();
$user=$_SESSION['log'];

$delete = $_GET['add'];
$sql = "update  customerdetails set editdate=CURRENT_DATE(),edittime=CURRENT_TIME(),editby='$user',status='' where code = '$delete'";
echo $sql;
 $go = mysqli_query($connect,$sql);
  header('Location:mastercustomer.php');

?>