-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshowdetails.php
More file actions
21 lines (21 loc) · 1.04 KB
/
showdetails.php
File metadata and controls
21 lines (21 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
$conn=mysqli_connect("localhost","root","","project1");
session_start();
$usn=$_SESSION['usn'];
$re = mysqli_query($conn,"SELECT * FROM studentia where usn='$usn' ");
if(mysqli_num_rows($re)>0){
echo "<table class='table'>";
echo "<tr><th>Subject</th><th>Internal Assessment-1</th><th>Internal Assessment-2</th><th>Internal Assessment-3</th><th>Assignment/Quiz-1</th><th>Assignment/Quiz-2</th></tr>";
while($dbs=mysqli_fetch_assoc($re)){
echo "<tr>";
echo "<td>".$dbs['subject']."</td>";
echo "<td>".$dbs['ia1']."</td>";
echo "<td>".$dbs['ia2']."</td>";
echo "<td>".$dbs['ia3']."</td>";
echo "<td>".$dbs['aq1']."</td>";
echo "<td>".$dbs['aq2']."</td>";
echo "</tr>";
}
}
mysqli_close($conn);
?>