-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpeople.php
143 lines (108 loc) · 4.34 KB
/
people.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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?php
include("header.php");
?>
<div class="banner-image w-100 vh-100 d-flex justify-content-center align-items-center" style="background-image: url('images/bannerimg.jpg');">
<div class="content text-center">
<h1 class="text-white">Team</h1>
</div>
</div>
<!-- Main Content Area -->
<div class="container my-3 d-grid gap-3">
<h2>
People
</h2>
<?php
$connection = mysqli_connect("localhost", "u731109599_kavyadb", "bUH:OXI9GZ]9", "u731109599_kavyadb");
$db = mysqli_select_db($connection, '');
$query = "SELECT * FROM `people`";
$query_run = mysqli_query($connection, $query);
while ($row = mysqli_fetch_array($query_run)) {
?>
<div class="p-4 card mb-3" style="max-width: 100%;">
<div class="row g-0">
<div class="col-md-4">
<?php echo '<img class="d-inline-block" src="data:image;base64,' . base64_encode($row['image']) . '" alt="Image" width="220px" height="auto" >'; ?>
</div>
<div class="col-md-8">
<div class="card-body">
<h3 class="card-title"><?php echo $row['name']; ?></h3>
<p class="card-text">
<?php echo $row['edu']; ?><br>
Area of interest:<?php echo $row['Area of Interest']; ?><br>
About me:<i><?php echo $row['About me']; ?></i><br>
<a href="<?php echo $row['Google scholar']; ?>" class="link-primary">Google Scholar</a> |
<a href="<?php echo $row['Research Gate']; ?>" class="link-primary"> Research Gate </a><br>
</p>
</div>
</div>
</div>
</div>
<?php
}
mysqli_close($connection);
?>
<div class="container-fluid">
<h2>
Technical Staff
</h2>
</div>
<?php
$connection = mysqli_connect("localhost", "u731109599_kavyadb", "bUH:OXI9GZ]9", "u731109599_kavyadb");
$db = mysqli_select_db($connection, '');
$query = "SELECT * FROM `technical staff`";
$query_run = mysqli_query($connection, $query);
while ($row = mysqli_fetch_array($query_run)) {
?>
<div class="p-4 card mb-3" style="max-width: 100%;">
<div class="row g-0">
<div class="col-md-4">
<?php echo '<img class="d-inline-block" src="data:image;base64,' . base64_encode($row['Image']) . '" alt="Image" width="220px" height="auto" >'; ?>
</div>
<div class="col-md-8">
<div class="card-body">
<h3 class="card-title"><?php echo $row['Name']; ?></h3>
</div>
</div>
</div>
</div>
<?php
}
?>
<div class="container-fluid">
<h2>
Alumni
</h2>
</div>
<?php
$connection = mysqli_connect("localhost", "u731109599_kavyadb", "bUH:OXI9GZ]9", "u731109599_kavyadb");
$db = mysqli_select_db($connection, '');
$query = "SELECT * FROM `alumni`";
$query_run = mysqli_query($connection, $query);
while ($row = mysqli_fetch_array($query_run)) {
?>
<div class="p-4 card mb-3" style="max-width: 100%;">
<div class="row g-0">
<div class="col-md-4">
<?php echo '<img class="d-inline-block" src="data:image;base64,' . base64_encode($row['image']) . '" alt="Image" width="220px" height="auto" >'; ?>
</div>
<div class="col-md-8">
<div class="card-body">
<h3><?php echo $row['name']; ?></h3>
<p>
<?php echo $row['edu']; ?><br>
Area of interest:<?php echo $row['area of interest']; ?><br>
About me:<i><?php echo $row['about']; ?></i><br>
<a href="<?php echo $row['google scholar']; ?>" class="link-primary">Google Scholar</a> |
<a href="<?php echo $row['researchgate']; ?>" class="link-primary"> Research Gate </a><br>
</p>
</div>
</div>
</div>
</div>
<?php
}
?>
</div>
<?php
include("footer.php");
?>