-
Notifications
You must be signed in to change notification settings - Fork 0
/
result.php
155 lines (141 loc) · 5.15 KB
/
result.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
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
<?php
if(isset($_POST['submit']))
{
include('dbcon.php');
$mothername=$_POST['mothername'];
$rollno =$_POST['rollno'];
$sql="SELECT * FROM `test`.`student_data` WHERE `u_mother`='$mothername' AND `u_rollno`='$rollno'";
$sql2="SELECT * FROM `test`.`user_mark` WHERE `u_rollno`='$rollno'";
$run=mysqli_query($con,$sql);
$run2=mysqli_query($con,$sql2);
$row=mysqli_num_rows($run2);
$data2=mysqli_fetch_assoc($run2);
if(mysqli_num_rows($run)>0)
{
$data=mysqli_fetch_assoc($run);
?>
<html>
<head>
<title>Result</title>
<link rel="stylesheet" href="csss/result.css" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Flamenco" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css">
</head>
<body>
<header>
<nav>
<div class="row clearfix">
<ul class="main-nav" animate slideInDown>
<li><a href="index.php"><b>HOME</b></a></li>
<li><a href="admin/aboutus.php"><b>ABOUT</b></a></li>
<li><a href="admin/contactus.php"><b>CONTACT</b></a></li>
<li><a href="login.php"><b>ADMIN LOGIN</b></a></li>
</ul>
</div>
</nav>
<div class="main-content-header">
<form method="post" action="result.php">
<table class="table">
<img src="dataimg/<?php echo $data['u_image']; ?>" class="image2" />
<tr>
<th>Name :</th>
<td><?php echo $data['u_name'] ?></td>
</tr>
<tr>
<th>Class :</th>
<td><?php echo $data2['u_class']; ?></td>
</tr>
<tr>
<th>Roll No :</th>
<td><?php echo $data['u_rollno']; ?></td>
</tr>
<tr>
<th>Father Name :</th>
<td><?php echo $data['u_father']; ?></td>
</tr>
<tr>
<th>City Name :</th>
<td><?php echo $data['u_village']; ?></td>
</tr>
</table>
<table class="table2">
<tr>
<th>Suject</th><th>Half Yealy Exam (Score) </th><th>Annual Exam (Score)</th><th>Total</th><th>Max. Marks</th>
</tr>
<tr>
<th>Hindi</th>
<th><?php echo $data2['u_hindi1']; ?></th>
<th><?php echo $data2['u_hindi2']; ?></th>
<th><?php echo $total1=$data2['u_hindi1']+$data2['u_hindi2']; ?> </th>
<th>200</th>
</tr>
<tr>
<th>English</th>
<th><?php echo $data2['u_english1']; ?></th>
<th><?php echo $data2['u_english2']; ?></th>
<th><?php echo $total2=$data2['u_english1']+$data2['u_english2']; ?> </th>
<th>200</th>
</tr>
<tr>
<th>Math</th>
<th><?php echo $data2['u_math1']; ?></th>
<th><?php echo $data2['u_math2']; ?></th>
<th><?php echo $total3=$data2['u_math1']+$data2['u_math2']; ?> </th>
<th>200</th>
</tr>
<tr>
<th>Physics</th>
<th><?php echo $data2['u_physics1']; ?></th>
<th><?php echo $data2['u_physics2']; ?></th>
<th><?php echo $total4=$data2['u_physics1']+$data2['u_physics2']; ?></th>
<th>200</th>
</tr>
<tr>
<th>Chemestry</th>
<th><?php echo $data2['u_chemestry1']; ?></th>
<th><?php echo $data2['u_chemestry']; ?></th>
<th><?php echo $total5=$data2['u_chemestry1']+$data2['u_chemestry']; ?></th>
<th>200</th>
</tr>
<tr>
<th>Total</th>
<th>
<?php echo $data2['u_hindi1']+$data2['u_english1']+$data2['u_math1']+$data2['u_physics1']+$data2['u_chemestry1']; ?>
</th>
<th>
<?php echo $data2['u_hindi2']+$data2['u_english2']+$data2['u_math2']+$data2['u_physics2']+$data2['u_chemestry']; ?>
</th>
<th><span class="colorchange"><?php echo $all=$total1+$total2+$total3+$total3+$total4+$total5; ?></span></th>
<th>1000</th>
</tr>
</table>
<h1>You Are <span class="colorchange1"><?php
if($all<=500)
{
echo "Fail";
}
else
{
echo"Pass";
}
?></span></h1>
<marquee scrollamount="5"><p>Your Result is Declared. Kindly check your marks and in case of any discrepany contact the admin. </p>
</marquee>
</form>
</div>
</header>
</body>
</html>
<?php
}
else
{
?>
<script>
alert('Record Not found');
window.open('index.php','_self');
</script>
<?php
}
}
?>