-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcarrds.php
More file actions
43 lines (31 loc) · 1.78 KB
/
Copy pathcarrds.php
File metadata and controls
43 lines (31 loc) · 1.78 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
<div class="">
<?php
$db = new DBconnect();
$conn=$db->connect();
$username = $_SESSION['username'];
$query=$conn->prepare("select * from student_details where username = '$username' ");
$query->execute([]);
if($query->rowCount() > 0){
echo "";
}else{
while ($row=$query->fetch()) {
while ( $row=$query->fetch()) {
$student_name = $row['student_name'];
$student_reg_no = $row['student_reg_no'];
$project_title = $row['project_title'];
$username = $row['username'];
echo "<div class = 'col-sm-6'>
<div class = 'card' id = 'cards'>
<div class = 'card-body' id = 'body'>
<h5 class = 'card-title' id = 'title'>Student name: $student_name </h5>
<h5 class = 'card-title' id = 'title'>Student Registration number: $student_reg_no </h5>
<h5 class = 'card-title' id = 'title'>Project Title: $project_title </h5>
<h5 class = 'card-title' id = 'title'>Username: $username </h5>
</div>
</div>
</div>";
}
}
}
?>
</div>