-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdevDetails.php
67 lines (62 loc) · 2.3 KB
/
devDetails.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
64
65
66
67
<?php
$con=mysqli_connect("localhost","root","","crudphp");
//checking the connection
if(mysqli_connect_errno())
{
echo "Unable to connect to the database : " .mysqli_connect_error();
}
$read_details=$_GET['devdetails'];
$query="select * from developerdetails where id='$read_details'";
$run=mysqli_query($con,$query);
while($row=mysqli_fetch_array($run))
{
$update_id=$row['id'];
$firstName=$row['firstName'];
$lastName=$row['LastName'];
$email=$row['email'];
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>View Details</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/styles.css">
<script type="text/javascript">
function logOut()
{
alert("You have been logged out");
}
</script>
</head>
<body>
<div class="container-fluid">
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="dashboard.php"><img src="img/hero.png" alt="logo"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor01" aria-controls="navbarColor01" aria-expanded="false" aria-label="Toggle navigation" style="">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarColor01">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="dashboard.php">Home <span class="sr-only">(current)</span></a>
<li class="nav-item">
<a class="nav-link" href="add.html" >Add</a>
</li>
</ul>
<a class="btn btn-info" href="index.html" onclick="logOut()">Log Out</a>
</nav>
</div>
<h1 class="dashboard-title">Dev Details</h1>
<div class="container_fluid">
<p class="data">Hi! <br>
My name is <b><?php echo $firstName; echo' '; echo $lastName;?></b>. My employee id is <b><?php echo $update_id; ?></b>. You can contact me at
<a href="mailto:"><b><?php echo $email; ?></b></a>.
</p>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>