forked from Liya-Mathew19/Salon-management
-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer_edit.php
58 lines (57 loc) · 2.9 KB
/
customer_edit.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
50
51
52
53
54
55
56
57
58
<?php
include 'customer_header.php';
include 'dbconnect.php';
$kid =$_GET['uid'];
$_SESSION['id']=$kid;
$select_details = "SELECT * FROM `tbl_registration` WHERE `Reg_id` = '$kid'";
$result = mysqli_query($con , $select_details);
while($row =mysqli_fetch_array($result))
{
$res=mysqli_query($con,"select Password from tbl_login where Reg_id='$kid'");
$row2=mysqli_fetch_array($res);
?>
<div><br><h1><b><font color="green">EDIT PROFILE</font></b></h1>
<body>
<form action="edit_action.php" method="post" enctype="multipart/form-data">
<table><font size="4">
<img src="Uploads/<?php echo $row['Image'];?>" alt="" height="300" width="250" style="padding-right: 418px; margin-bottom: -344px; padding-left: 500px; margin-top: -173px;">
<tr><td><b>FIRST_NAME:    <input type="text" name="fname" value="<?php echo $row['F_name'];?>"></b></td></tr>
<tr><td><b>LAST_NAME:     <input type="text" name="lname" value="<?php echo $row['L_name'];?>"></b></td></tr>
<tr><td>
<?php
if($row['Gender']=="male"){?>
<tr><td><b>GENDER:<td>          <input type="radio" name="gen" value="male" checked="checked" />male<input type="radio" name="gen" value="female" />female</td></tr>
<?php
}
else {?>
<tr><td><b>GENDER:          <input type="radio" name="gen" value="male" />male<input type="radio" name="gen" checked="checked" value="female" />female</td></tr>
<?php } ?>
</td></tr>
<tr><td><b>HOUSE NAME:   <input type="text" name="house" value="<?php echo $row['House_name'];?>"></b></td></tr>
<tr><td><b>CITY:                  <input type="text" name="city" value="<?php echo $row['City'];?>"></b></td></tr>
<tr><td><b>DISTRICT:         </b>
<select name="district">
<option>--Select--</option>
<?php
$res=mysqli_query($con,"SELECT * FROM `tbl_district`");
$r=mysqli_num_rows($res);
while($row1=mysqli_fetch_array($res))
{
?>
<option value = <?php echo $row1['Dis_id'];?>> <?php echo $row1['Dis_name']; ?></option>
<?php
}
?>
</select></td>
</tr>
<tr><td><b>PHONE:              <input type="text" name="phone" value="<?php echo $row['Mobile'];?>"></b></td></tr>
<tr><td><b>EMAIL:                <input type="text" name="email" value="<?php echo $row['Email'];?>"></b></td></tr>
<tr><td><b>PHOTO:             <input type="file" name="Image" value="<?php echo $row['Image'];?>"></b></td></tr>
<tr><td>                           <input type="submit" name="submit" value="UPDATE"/></td></tr>
</table></div>
</form>
</body>
</html>
<?php
}
?>