-
Notifications
You must be signed in to change notification settings - Fork 0
/
soldaa.php
52 lines (51 loc) · 1.43 KB
/
soldaa.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
<html>
<head>
<title>Solutions</title>
<!-- <link rel="stylesheet" type="text/css" href="css/style.css">S -->
</head>
<body ><center>
<h1 >SOLUTIONS</h1></center>
<hr>
<?php
include 'config.php';
mysqli_connect("localhost","root");
mysqli_select_db($conn,"student_performance _tracking");
$res=mysqli_query($conn,"SELECT q.id,q.question, q.solution FROM questions q where sub='daa'");
while($row=mysqli_fetch_array($res))
{
?>
<b>
<?php echo"Ques: "; echo $row['question']; ?><br><br></b><?php echo "Sol: "; echo $row['solution']; ?>
<?php
echo "<br><br><br><bR>";
}
?>
<a class="BACK" href="nnewsol.php">BACK</a>
<style>.BACK{ /*For back button*/
position: fixed; /* It is positioned relative to the initial containing block */
bottom: 10px;
left:10px;
width: 90px;
height: 25px;
font-size: 20px;
font-family: lato;
background-color:lightcoral;
color: black;
box-shadow: 2px 2px lightgrey;
border-radius: 5px;
text-align: center;
padding: 5px;
}*{ /*For heading h1*/
/* padding-top: 15px;
color:white; */
background-color: aquamarine;
}
h1
{
color:blueviolet;
}
a{ /*For removing undeline from anchor tag*/
text-decoration: none;
}</style>
</body>
</html>