-
Notifications
You must be signed in to change notification settings - Fork 0
/
medium.php
94 lines (91 loc) · 3.9 KB
/
medium.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
85
86
87
88
89
90
91
92
93
94
<?php
session_start();
if(!isset($_SESSION['us1'])) // If session is not set then redirect to Login Page
{
header("Location:index.php");
}
else {
$now = time();
if ($now > $_SESSION['expire']) {
session_destroy();
}
}
$con = mysqli_connect("localhost","root","","cc");
if(!$con)
{
die("Connection Failed".mysqli_connect_error());
}
$result1 = mysqli_query($con,"select * from question where level = 'Medium'");
if(mysqli_num_rows($result1)>0)
{
$row = mysqli_fetch_assoc($result1);
$question=$row['QName'];
$description=$row['Qdescription'];
$input=$row['Input'];
$output=$row['Output'];
echo "<html lang='en'>
<head>
<title>Admin</title>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<!--===============================================================================================-->
<link rel='icon' type='image/png' href='images/icons/favicon.ico'/>
<!--===============================================================================================-->
<link rel='stylesheet' type='text/css' href='vendor/bootstrap/css/bootstrap.min.css'>
<!--===============================================================================================-->
<link rel='stylesheet' type='text/css' href='fonts/font-awesome-4.7.0/css/font-awesome.min.css'>
<!--===============================================================================================-->
<link rel='stylesheet' type='text/css' href='fonts/iconic/css/material-design-iconic-font.min.css'>
<!--===============================================================================================-->
<link rel='stylesheet' type='text/css' href='vendor/animate/animate.css'>
<!--===============================================================================================-->
<link rel='stylesheet' type='text/css' href='vendor/css-hamburgers/hamburgers.min.css'>
<!--===============================================================================================-->
<link rel='stylesheet' type='text/css' href='vendor/animsition/css/animsition.min.css'>
<!--===============================================================================================-->
<link rel='stylesheet' type='text/css' href='vendor/select2/select2.min.css'>
<!--===============================================================================================-->
<link rel='stylesheet' type='text/css' href='vendor/daterangepicker/daterangepicker.css'>
<!--===============================================================================================-->
<link rel='stylesheet' type='text/css' href='vendor/noui/nouislider.min.css'>
<!--===============================================================================================-->
<link rel='stylesheet' type='text/css' href='css/util.css'>
<link rel='stylesheet' type='text/css' href='css/main.css'>
<!--===============================================================================================-->
</head>
<body>
<form class='form' action='next.php' method='post'>
<div class='container-contact100'>
<div class='wrap-contact100'>
<h6>question:</h6>
<h7>$question</h7><br>
<br>
<h6>question description:</h6>
<h7>$description</h7><br>
<br>
<h6>Sample Input:</h6>
<h7>$input</h7><br>
<br>
<h6>sample output:</h6>
<h7>$output</h7><br>
<br>
<div class='container-contact100-form-btn'>
<button class='contact100-form-btn' type='Submit'>
<span>
Let's Code Here!.
<i class='fa fa-long-arrow-right m-l-7' aria-hidden='true'></i>
</span>
</button>
</div>
</div>
</div>
</form>
<!--===============================================================================================-->
<script src='js/main.js'></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src='https://www.googletagmanager.com/gtag/js?id=UA-23581568-13'></script>
</body>
</html>
";
}
?>