-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpoor_students.php
43 lines (38 loc) · 1.34 KB
/
poor_students.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
<?php include 'inc/header.php'; ?>
<?php include 'inc/navbar.php'; ?>
<?php include 'inc/pop_up.php'; ?>
<div class="container">
<div class="row">
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<?php
$query = "SELECT * FROM users WHERE user_type = 'student' ORDER BY id DESC";
$select_users = mysqli_query($connection,$query);
while($row = mysqli_fetch_assoc($select_users)){
$id = $row['id'];
$name = $row['user_name'];
$user_image = $row['user_image'];
$dob = $row['dob'];
$user_dis = substr($row['user_dis'],0,70);
?>
<tr>
<td align="left" width="20%"><img src="img/<?php echo $user_image; ?>" alt="" class="" hight="120px" width="120px">
</td>
<td align="left" width="80%">
<p>নামঃ <a href="info?id=<?php echo $id; ?>"><?php echo $name; ?></a><br>
জন্ম তারিখঃ <?php echo $dob; ?><br>
সাহায্যের কারনঃ <?php echo $user_dis; ?></p>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<?php include 'inc/footer.php'; ?>