-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwelcome.php
63 lines (58 loc) · 1.55 KB
/
welcome.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
59
60
61
62
63
<?php
session_start();
?>
<html>
<head>
<meta charset="UTF-8">
<title>Welcome Page</title>
<link rel="stylesheet" type="text/css" href="style1.css">
</head>
<body>
<div class="container">
<h1 class="text-center text-success">Welcome
<?php
echo $_SESSION['username'];
?>
</h1>
<table border="3">
<tr>
<td>Name</td>
<td>email</td>
<td>make</td>
<td>model</td>
<td>Service Type</td>
<td>registration no</td>
<td>reading</td>
<td>Service Includes</td>
<td>additional requirements</td>
<td>instructions</td>
<td>preferred date</td>
</tr>
<?php
$user=$_SESSION["username"];
$conn= mysqli_connect("localhost", "root", "", "motodb");
$query=mysqli_query($conn,"select * from service where email='$user'");
$rowcount=mysqli_num_rows($query);
for($i=1;$i<=$rowcount;$i++)
{
$row=mysqli_fetch_array($query);
}
?>
<tr>
<td><?php echo $row['name'] ?></td>
<td><?php echo $row['email'] ?></td>
<td><?php echo $row['make'] ?></td>
<td><?php echo $row['model'] ?></td>
<td><?php echo $row['type'] ?></td>
<td><?php echo $row['regno'] ?></td>
<td><?php echo $row['reading'] ?></td>
<td><?php echo $row['ser'] ?></td>
<td><?php echo $row['req'] ?></td>
<td><?php echo $row['inst'] ?></td>
<td><?php echo $row['date'] ?></td>
</tr>
</table>
<a href="logout.php">LOGOUT</a>
</div>
</body>
</html>