-
Notifications
You must be signed in to change notification settings - Fork 15
/
pastmem.php
53 lines (51 loc) · 1.84 KB
/
pastmem.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
<?php
require "../database/member_info.php";
?>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<?php
$query = "SELECT * FROM past_members ";
$result = mysqli_query($connection,$query);
while($row = mysqli_fetch_assoc($result)){
$name = $row['name'];
$roll_no = $row['roll_no'];
$image = $row['image'];
$des = $row['description'];
$hof = $row['hof'];
$social_id = $row['social_handles'];
$query = "SELECT * FROM social_handles WHERE `social_handles_id`='$social_id'";
$res = mysqli_query($connection,$query);
while($data = mysqli_fetch_assoc($res)){
$git = $data['github'];
$mail = $data['mail'];
$face = $data['facebook'];
$insta = $data['instagram'];
$chef = $data['codechef'];
$force = $data['codeforces'];
$linkedin = $data['linkedin'];
$rank = $data['hackerrank'];
$earth = $data['hackerearth'];
$twi = $data['twitter'];
}
$sess = $row['session'];
$post = $row['post'];
?>
<div class=card>
Name : '<?php echo $name;?>'<br>
Roll: '<?php echo $roll_no;?>'<br>
Image : <?php echo '<img src="data:image/jpeg;base64,'.base64_encode( $image ).'"/>'; ?><br>
Des : '<?php echo $des;?>'<br>
HOf : '<?php echo $hof;?>'<br>
social handles : '<?php echo $git; echo $mail; echo $face; echo $insta; echo $chef; echo $force; echo $linkedin; echo $rank; echo $earth; echo $twi;?>'<br>
Sess : '<?php echo $sess;?>'<br>
post : '<?php echo $post;?>'<br>
</div>
<hr>
<?php
}
?>
</body>
</html>