-
Notifications
You must be signed in to change notification settings - Fork 0
/
studentprofile.php
64 lines (54 loc) · 1.49 KB
/
studentprofile.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
<?php
session_start();
$con = mysqli_connect('localhost','root');
if($con){
echo"";
}else{
echo " no connection";
}
mysqli_select_db($con, 'sessionpractical');
$q = " select * from signin ";
$result = mysqli_query($con, $q);
?>
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
</style>
<title></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2 align="center"><b>Student Profile Record</b></h2>
<br><br><br>
<center><img src="<?php echo $_SESSION['image1']; ?>" height="200" width="150"/></center> //adding student photo
<br><br>
<table align="center" class="table">
<td> Roll Number</td>
<td><?php echo $_SESSION['username1']; ?></td>
</tr>
<tr>
<td> Name </td>
<td><?php echo $_SESSION['naam1']; ?></td>
</tr>
<tr>
<td colspan="2">Courses Enrolled :-</td>
</tr>
<tr>
<td><?php echo $_SESSION['course_11']; ?></td>
</tr>
<tr>
<td><?php echo $_SESSION['course_21']; ?></td>
</tr>
<tr>
<td><?php echo $_SESSION['course_31']; ?></td>
</tr>
</table>
</div>
</body>
</html>