-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstu_profile.php
177 lines (158 loc) · 7.38 KB
/
stu_profile.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<?php session_start(); error_reporting(0); ini_set('display_errors', 'off');?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Student | Profile</title>
<link rel="stylesheet" href="stu_profile.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<nav class="topnav">
<div class="topnav-left">
<img src="images/SRKR Ready.png">
</div>
<div class="topnav-right">
<ul>
<li><a href="stu_home.php">Home</a></li>
<li><a class="active">Profile</a></li>
<li><a href="stu_leaderboard.php">Leaderboard</a></li>
<li><a href="stu_about.php">About</a></li>
<li><?php echo "<a href='stu_settings.php'>{$_SESSION['username']}</a>"; ?></li>
</ul>
</div>
</nav>
<div class="center" style="border: 1px solid black; border-color: #086892;" >
<div class="Left">
<?php
// Connect to the database
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "srkr ready";
$conn = mysqli_connect($servername, $username, $password, $dbname);
// Check connection
if (!$conn) {
die("Connection failed: ");
}
$stmt = $conn->prepare("SELECT * FROM stu_profile WHERE Reg_No = ?");
$stmt->bind_param("s", $_SESSION['username']);
$stmt->execute();
$result = $stmt->get_result();
$row1=mysqli_fetch_assoc($result);
?>
<div class="Resume_pic" >
<?php echo "<img src='https://srkrexams.in/SRKR/photo/{$_SESSION['username']}.JPG'>";?>
</div>
<div class="Res_Name">
<p><?php echo $row1["FullName"]; ?></p>
</div>
<div class="des">
<div class="ides">
<i class="fa fa-envelope"></i>
<p><?php echo $row1["Email"]; ?></p>
</div>
<div class="ides">
<i class="fa fa-phone"></i>
<p><?php echo $row1["Phone"]; ?></p>
</div>
<div class="ides">
<i class="fa fa-linkedin"></i>
<p><?php echo $row1["Linkedin"]; ?></p>
</div>
</div>
<hr style="width:90%;margin:10px auto;">
<div class="Tech_skills" style="padding-bottom: 10px;">
<p style="padding-left:20px; padding-top:10px; padding-bottom:10px; font-weight:bold;"> Technical Skills:</p>
<?php
$d=",";
$array = explode($d, $row1["Tech_Skills"]);
$c=count($array);
$i=1;
foreach($array as $s){
if($i==$c){
break;
}
echo "<li>".$s ."</li>";
$i++;
}
?>
</div>
<hr style="width:90%;margin:10px auto;">
<div class="Programming_Languages" style="padding-bottom: 10px;">
<p style="padding-left:20px; padding-top:10px; padding-bottom:10px; font-weight:bold;" >Programming Languages :</p>
<?php
$d=",";
$array = explode($d, $row1["Programming_Languages"]);
$c=count($array);
$i=1;
foreach($array as $s){
if($i==$c){
break;
}
echo "<li>".$s ."</li>";
$i++;
}
?>
</div>
<hr style="width:90%;margin:10px auto;">
<div class="Tools" style="padding-bottom: 20px;">
<p style="padding-left:20px; padding-top:10px; padding-bottom:10px; font-weight:bold;" >Tools :</p>
<?php
$d=",";
$array = explode($d, $row1["Tools"]);
$c=count($array);
$i=1;
foreach($array as $s){
if($i==$c){
break;
}
echo "<li>".$s ."</li>";
$i++;
}
?>
</div>
</div>
<div class="Right">
<div class="Career Objective" style="padding-bottom: 10px;">
<h4 style="padding-left:10px; padding-top:10px;padding-bottom:10px;" >Career Objective :</h4>
<p style="padding-left:30px;"><?php echo $row1["Career_Objective"]; ?></p>
</div>
<hr style="width:97%; margin:10px auto; border-color: #086892;">
<div class="Internships" style="padding-bottom: 10px;">
<h4 style="padding-left:10px; padding-top:10px;padding-bottom:10px;" >Internships :</h4>
<?php
$d = ",";
$array = explode($d, $row1["Internships"]);
foreach($array as $s){
echo "<li>".nl2br($s) ."</li>";
}
?>
</div>
<hr style="width:97%; margin:10px auto; border-color: #086892;">
<div class="Projects" style="padding-bottom: 10px;">
<h4 style="padding-left:10px; padding-top:10px;padding-bottom:10px;" >Projects :</h4>
<?php
$d = ",";
$array = explode($d, $row1["Projects"]);
foreach($array as $s){
echo "<li>".nl2br($s) ."</li>";
}
?>
</div>
<hr style="width:97%; margin:10px auto; border-color: #086892;">
<div class="Certificates" style="padding-bottom: 20px;">
<h4 style="padding-left:10px; padding-top:10px;padding-bottom:10px;" >Certificates :</h4>
<?php
$d = ",";
$array = explode($d, $row1["Certificates"]);
foreach($array as $s){
echo "<li>".nl2br($s) ."</li>";
}
?>
</div>
</div>
</div>
</body>
</html>