-
Notifications
You must be signed in to change notification settings - Fork 0
/
executive_ajax7.php
49 lines (39 loc) · 1.52 KB
/
executive_ajax7.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
session_start();
include('config.php');
$emp_id=$_GET['id'];
$que=mysqli_query($con,"select * from add_employee where employee_code='$emp_id'");
$r=mysqli_fetch_array($que);
$emp_underwriter=$r['employee_underwriter'];
// first name
$qu=mysqli_query($con,"select * from add_employee where employee_first_name='$emp_underwriter'");
$rw=mysqli_fetch_array($qu);
$name=$rw['employee_underwriter'];
// second name
$quu=mysqli_query($con,"select * from add_employee where employee_first_name='$name'");
$rrw=mysqli_fetch_array($quu);
$under_name=$rrw['employee_underwriter'];
$under_des=$rrw['employee_designation'];
$quuq=mysqli_query($con,"select * from add_employee where employee_first_name='$under_name'");
$rrqw=mysqli_fetch_array($quuq);
$undeqr_name=$rrqw['employee_underwriter'];
$undeqr_des=$rrqw['employee_designation'];
$ququq=mysqli_query($con,"select * from add_employee where employee_first_name='$undeqr_name'");
?>
<select class="form-control select1" name="sales_director" id="l17">
<?php
while($rrqqw=mysqli_fetch_array($ququq))
{
$undeqqr_name=$rrqqw['employee_underwriter'];
$undeqqqr_des=$rrqqw['employee_designation'];
$undeqqqr_dees=$rrqqw['employee_first_name'];
$qquuq=mysqli_query($con,"select * from designation where designation_name='$undeqqqr_des'");
$rrqqww=mysqli_fetch_array($qquuq);
$undeqrr_name=$rrqqww['designation_name'];
$undeqer_des=$rrqqww['designation_id'];
if($undeqqqr_des==$undeqrr_name)
{
?>
<option value="<?php echo $emp_name; ?>"><?php echo $undeqrr_name; ?></option>
<?php } } ?>
</select>