-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paths2f.php
84 lines (63 loc) · 1.53 KB
/
s2f.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
<?php
session_start();
$login=$_SESSION['login'];
if($_REQUEST['logout'])
{
$login=NULL;
$_SESSION['login']=$login;
header("Location: index.php");
}
include("database.php");
$q="select * from profile where Role='Faculty'";
$z=mysql_query($q);
$q1="select * from registration where Email='$login'";
$z1=mysql_query($q1);
$x1=mysql_fetch_assoc($z1);
?>
<!DOCTYPE html>
<html lang="en">
<?php include("title.php"); ?>
<body>
<div class="container-fluid">
<?php include("header.php"); ?>
<div class="row jumbotron user">
<div class="col-sm-8">
<form>
<input type="submit" class="btn btn-default" id="logout" name="logout" value="logout">
</form>
</div>
<div class="col-sm-4">
<h1> Welcome <?php echo $login; ?> </h1>
</div>
</div>
<div class="row">
<div class="col-sm-2">
</div>
<div class="col-sm-10" style="
margin-top: 40px;
margin-bottom: 40px;
">
<?php
while($x=mysql_fetch_assoc($z))
{
if($x[Id]!=$x1[Id])
{
$n=$x[Id];
$q2="select * from pic where Id=$n";
$z2=mysql_query($q2);
$x2=mysql_fetch_assoc($z2);
?>
<div class="col-sm-3">
<img src="/ccs/image/<?php echo $x2[Name]; ?>" class="withs" />
<?php echo $x[Name]."<br>"."<a href='/ccs/user/$x[Email]'>".$x[Email]."</a>"; ?>
</div>
<?php
}
}
?>
</div>
</div>
<?php include("footer.php"); ?>
</div>
</body>
</html>