芝麻web文件管理V1.00
';
}
else
{
echo 'Danger! Distributor Not Added. Try Again.
';
}
}
else
{
echo 'Danger! This Mobile Already Registred.
';
}
}
if(isset($_POST['edit']))
{
$edit_id = $_POST['edit_id'];
$name = mysqli_real_escape_string($cn,$_POST['name']);
$company_name = mysqli_real_escape_string($cn,$_POST['company_name']);
$email = mysqli_real_escape_string($cn,$_POST['email']);
$mobile = mysqli_real_escape_string($cn,$_POST['mobile']);
$designation_id = mysqli_real_escape_string($cn,$_POST['designation_id']);
$state_id = $_POST['state_id'];
$city_id = $_POST['city_id'];
$pincode = $_POST['pincode'];
$gst = $_POST['gst'];
$address = mysqli_real_escape_string($cn,$_POST['address']);
$sqlSubject = mysqli_query($cn, "update `tbl_employee` set `name`='$name', `company_name`='$company_name', `mobile`='$mobile', `email`='$email', `designation_id`='$designation_id', `state_id`='$state_id', `city_id`='$city_id', `pincode`='".$pincode."', `gst`='$gst', `address`='$address' where `id`='".$edit_id."'");
if ($sqlSubject){
echo 'Success! Distributor Added Successfully.
';
}
else
{
echo 'Danger! Distributor Not Added. Try Again.
';
}
}
if(isset($_GET['edit_id']))
{
$id = $_GET['edit_id'];
$sql = mysqli_query($cn, "select * from tbl_employee where id='$id'");
$sqlData = mysqli_fetch_array ($sql);
}
if(isset($_GET['delete_id']))
{
$id = $_GET['delete_id'];
$sql = mysqli_query($cn, "update `tbl_employee` SET `status`=0 where id='$id'");
}
?>
Dealer / Distributor / Retailer List
S.No. |
Category |
Firm Name |
Person Name |
City |
State |
Mobile No. |
Action |
|
|
|
|
|
|
|
Edit
Delete
|