-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile1.php
63 lines (52 loc) · 1.95 KB
/
profile1.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
<?php
session_start();
$conn=mysqli_connect("localhost","root","");
mysqli_select_db($conn,"registration");
$sql="select * from student_registration where id='".$_SESSION['user_id']."' ";
$run=mysqli_query($conn,$sql);
$data=mysqli_fetch_assoc($run);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="css/profile.css" type="text/css" rel=stylesheet>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital@1&display=swap" rel="stylesheet">
<title>profile</title>
</head>
<?php include("nav-bar2.php"); ?>
<body>
<div class="team">
<div class="container">
<h1>Welcome <?php echo $data['firstname'];?></h1>
<div class= "card">
<div class="box">
<img src="upload/<?php echo $data['upload_id']; ?>" >
<h4>FIRST NAME</h4>
<div class="store">
<?php echo $data['firstname'];?>
</div>
<h4>LAST NAME</h4>
<div class="store">
<?php echo $data['lastname']; ?>
</div>
<h4>COLLEGE NAME</h4>
<div class="store">
<?php echo $data['collegename']; ?>
</div>
<h4>CONTACT NUMBER</h4>
<div class="store">
<?php echo $data['contactnumber']; ?>
</div>
<h4>EVENT</h4>
<div class="store">
<?php echo $data['eventname']; ?>
</div>
<a href="edit_profile.php"><input type="submit" name="sub" value="Edit profile" class="sub"></a>
</div>
</div>
</div>
</div>
</body>
</html>