-
Notifications
You must be signed in to change notification settings - Fork 56
/
Noel_Obaseki.php
93 lines (75 loc) · 1.76 KB
/
Noel_Obaseki.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<head>
<style>
.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
max-width: 300px;
margin: auto;
text-align: center;
}
.title {
color: grey;
font-size: 18px;
}
button {
border: none;
outline: 0;
display: inline-block;
padding: 8px;
color: white;
background-color: #000;
text-align: center;
cursor: pointer;
width: 100%;
font-size: 18px;
}
a {
text-decoration: none;
font-size: 22px;
color: black;
}
button:hover, a:hover {
opacity: 0.7;
}
</style>
</head>
<?php
try { //query to select intern data
$myname = "SELECT * FROM interns_data WHERE username='Noel_Obaseki'" ;
$q = $conn->query($myname);
$q->setFetchMode(PDO::FETCH_ASSOC);
$data = $q->fetch();
$name=$data['name'];
$username=$data['username'];
}
catch (PDOException $e) {
throw $e;
}
try { //query to get secret word
$word = "SELECT * FROM secret_word" ;
$q = $conn->query($word);
$q->setFetchMode(PDO::FETCH_ASSOC);
$data = $q->fetch();
$secret_word=$data['secret_word'];
}
catch (PDOException $e) {
throw $e;
}
?>
<div class="card">
<img src="http://res.cloudinary.com/dqnhgax9d/image/upload/v1525107042/Snapshot_20150201_2.jpg" alt="Noel" style="width:100%">
<?php
echo "<h1>" .$name. "</h1>";
?>
<p class="title">Android Developer</p>
<p>Hotels.ng Internship</p>
<?php
$data1 = "Username :";
$result = "$data1 $username";
echo "<p>" .$result. "<p>";
?>
<p>Slack : @Noel Obaseki </p>
<a href="https://twitter.com/N0e_1"><i class="fa fa-twitter"></i></a>
<a href="https://www.linkedin.com/in/noel-obaseki-511799127/"><i class="fa fa-linkedin"></i></a>
<a href="#"><i class="fa fa-facebook"></i></a>
<p><button>Contact</button></p>
</div>