-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview.php
More file actions
155 lines (100 loc) · 2.72 KB
/
Copy pathview.php
File metadata and controls
155 lines (100 loc) · 2.72 KB
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Untitled Document</title>
<script type="text/javascript" src="script3.js"></script>
<!--<link rel="stylesheet" type="text/css" href="mycss.css">-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
<style>
#customers {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#customers td, #customers th {
border: 1px solid #ddd;
padding: 8px;
}
#customers tr:nth-child(even){background-color: #f2f2f2;}
#customers tr:hover {background-color: #ddd;}
#customers th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #4CAF50;
color: white;
body
{
background-color: linear-gradient(to right,rgba(164, 197, 249,0.3),rgba(164, 197, 249,0.9));
}
}
img {
float: left;
}
body {font-family: Arial, Helvetica, sans-serif; }
.navbar {
width: 100%;
background-color: #555;
overflow: auto;
}
.navbar a {
float: left;
padding: 12px;
color: white;
text-decoration: none;
font-size: 17px;
}
.navbar a:hover {
background-color: #000;
}
.active {
background-color: #4CAF50;
}
@media screen and (max-width: 500px) {
.navbar a {
float: none;
display: block;
}
}
</style>
</head>
<body>
<?php
$mysqli = new MySQLi('localhost','root','','webproject');
if($mysqli->connect_error)
{
die("Database not connected " . $mysqli->connect_error);
}
session_start();
?>
<div class="wrapper">
<div class="navbar">
<a class="active" href="hod2.php"><i class="fa fa-fw fa-home"></i> Home</a>
<a href="#"><i class="fa fa-fw fa-search"></i> Search</a>
<a href="contact.php"><i class="fa fa-fw fa-envelope"></i> Contact</a>
<div class="drBtn">
<a href="#"><i class="fa fa-fw fa-user"></i> <?php echo($_SESSION['name']);?>
<i class="down"></i>
<div class="drContent">
<span class="logged_in">Logged in as <?php echo($_SESSION['name']);?></span>
<a href="login2.php">Logout</a>
<a href="#">Modify account</a>
</div>
</a>
</div>
</div>
<?php
$sqll="select * from for_hod ";
$select2 = $mysqli->query($sqll);
$result=mysqli_num_rows($select2);
if($result>0){
echo "<table style='padding:10px;' id='customers'><tr><th>Faculty name</th><th>Date</th><th>Message</th></tr>";
while($row=mysqli_fetch_assoc($select2)){
echo "<tr><td>".$row['Faculty_name']."</td><td>". $row['Date']."</td><td>".$row['Message']."/td" ;
}
}
?>
</body>