-
Notifications
You must be signed in to change notification settings - Fork 6
/
customer_view.php
51 lines (47 loc) · 1.66 KB
/
customer_view.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
<?php
include 'admin_header.php';
?>
<html>
<body background="images/1440x900.jpg">
<h1><font color="green">CUSTOMER DETAILS</h1></font>
<form action="#" method="post" enctype="multipart/form-data">
<?php
include 'dbconnect.php';
$kid=$_GET['uid'];
$result=mysqli_query($con,"select * from tbl_registration where `Reg_id`='$kid'");
$i=1;
while($row=mysqli_fetch_array($result))
{
$a=$row['Dis_id'];
$result1=mysqli_query($con,"select * from tbl_district where Dis_id='$a'");
$row1=mysqli_fetch_array($result1);
?>
<table width=50%>
<img src="uploads/<?php echo $row['Image'];?>" alt="" height="270" width="246" style="padding-left: 430px; margin-bottom: -263px;"/>
<tr><td>Name:           <?php echo $row['F_name'];?>  <?php echo $row['L_name'];?></td></tr>
<tr><td>Gender:         <?php echo $row['Gender'];?></td></tr>
<tr><td>House Name: <?php echo $row['House_name'];?></td></tr>
<tr><td>City:                <?php echo $row['City'];?></td></tr>
<tr><td>District:           <?php echo $row1['Dis_name'];?></td></tr>
<tr><td>Mobile:           <?php echo $row['Mobile'];?></td></tr>
<tr><td>Email:             <?php echo $row['Email'];?></td></tr>
<td><br><br><a href="admin_customer_view.php?>"><img src="images/fleche.png" width="35px">Back To Previous Page</td></tr></a>
<?php
$i++;
}
?>
<style>
table {
border-collapse: collapse;
width: 100%;
}
th, td {
text-align: left;
padding: 8px;
}
tr:nth-child(even){background-color: #f2f2f2}
th {
background-color: #4CAF50;
color: white;
}
</style>