Repository navigation
Expand file tree
/
Copy pathwater.php
More file actions
118 lines (86 loc) · 2.25 KB
/
Copy pathwater.php
File metadata and controls
118 lines (86 loc) · 2.25 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?php
require 'db.php';
$result = $conn->query("Select * from secret_word LIMIT 1");
$result = $result->fetch(PDO::FETCH_OBJ);
$secret_word = $result->secret_word;
$query1 = "SELECT * FROM interns_data_ WHERE username='WaTeR'";
$stmt = $conn->query($query1);
$stmt->execute();
?>
<!DOCTYPE html>
<html>
<head>
<title>HNG INternship Task 3</title>
<style type="text/css">
*{
padding: 0px;
margin:0px auto;
max-width: 100%;
font-size: 100%;
}
.head{
margin-top: 30px;
padding: 20px;
max-width: 90%;
background: #F0F8FF;
color: #002610;
}
.head h1{
font-size: 40pt;
text-align: center;
}
.compliment{
padding: 20px;
background: #6A5ACD;
max-width: 90%;
font-size: 20pt;
color: #FDFDF8;
text-align: center;
}
.content{
margin-top: 5px;
padding: 20px;
background:#DC143C;
max-width: 90%;
color: #FDFDF8;height: 150px;
text-align: center;
}
.content .header{
color: #4D0909;
font-size: 30pt;
text-align: left;
}
</style>
}
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
<div class="head">
<h1>Hi,</h1>
<h1>I am WATER from AndroidNGR, EKITI</h1>
</div>
<div class="compliment">
<p> a member of the HNG Internship 4.0 </p>
</div>
<div class="content">
<div class="col-lg-3">
</div>
<?php while ($data = $stmt->fetch(PDO::FETCH_ASSOC)) { ?>
<div class="col-lg-6">
<img class="img-circle " src="<?php echo $data['image_filename']; ?>" alt="Generic placeholder image" width="200" height="200" style="border:solid 5px #fff;">
<h2 style="color: #fff;"><?php echo $data['username']; ?>
<br/><small style="color: #FFFFCC;"><?php echo $data['name']; ?></small></h2>
<p class="text-primary" style="color: #F0F8FF;">FULL-STACK DEVELOPER | GRAPHICS DESIGNER | LEARNER</p>
<!-- <p><a class="btn btn-default" href="#" role="button">View details »</a></p> -->
</div><!-- /.col-lg-4 -->
</div>
<?php } ?>
<div class="col-lg-3">
</div>
<div style="background: #6A5ACD; height: 200px;max-width: 90%">
</div>
</div>
<!-- /.row -->
</body>
</html>