<?php
include "dbconfig.php";
$link = opencon();
$id = $_POST['id'];
// echo $id;
$name = $_POST['name'];
$contact = $_POST['contact'];
$location = $_POST['location'];
$status = $_POST['status'];
$email = $_POST['email'];
$l_status = $_POST['lead_status'];
$l_source = $_POST['lead_source'];
// echo $l_source;
$l_micro = $_POST['lead_micro_source'];
// echo $l_micro;
$manager = $_POST['team_manager'];
$leader = $_POST['team_leader'];
$telecaller = $_POST['telecaller'];
$date = $_POST['fdate'];
// echo $date;
$note = $_POST['note'];
$type = $_POST['type'];
// echo  $type;
$sql = "UPDATE new_lead SET Name='$name',Contact_No='$contact',Location='$location',Lead_Type='$status',Email='$email',Lead_Status='$l_status',Lead_Source='$l_source',Lead_Micro_Source='$l_micro',Team_Manager='$manager',Team_Leader='$leader',Telecaller='$telecaller',Date='$date',Type='$type' WHERE id='$id'";
echo $sql;
if(mysqli_query($link,$sql)){
    echo ("Files Inserted Successfully");
}
header('location:lead_list.php');

?> 

