-
Notifications
You must be signed in to change notification settings - Fork 0
/
uploaded.php
74 lines (62 loc) · 2.13 KB
/
uploaded.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
<?php
session_start();
if ($_SESSION['status'] != "Active") {
header("location:login.html");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="index.css">
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<!-- navbar -->
<header class="header">
<nav class="navbar">
<a href="welcome.php">Home</a>
<a href="#">About</a>
<a href="#">Contact</a>
<a href="#">Help</a>
<a href="login.html">log out</a>
</nav>
<div class="company">
<h2 class="logo"></i>DOCSAFE</h2>
</div>
</header>
<!-- login -->
<div class="background"></div>
<div class="container">
<div class="items">
<h1>Files Uploaded!</h1>
<h1>verification Status : <?php
$connection = mysqli_connect('localhost','root','','db');
if(!$connection){die("Connection Error -> ".mysqli_connect_error());}
$id1=$_SESSION['id'];
$sql = "SELECT * FROM `user` WHERE id = '$id1'";
$result = mysqli_query($connection, $sql);
if ($connection->query($sql) == TRUE) {
while($row = $result->fetch_assoc())
//while($row = mysql_fetch_array($result))
{
$fiel1=$row["validation"];
//$res=echo ".$row['privilege']."
if($fiel1=="Not Verified")
{
echo "Verification in Progress";
}
else{
echo $fiel1;
}
}
}?></h1>
</div>
</div>
<!-- SIGN UP FORM CREATION -->
<script src="index.js"></script>
</body>
</html>