Server IP : 2a02:4780:11:1359:0:1d43:a566:2 / Your IP : 216.73.216.142 Web Server : LiteSpeed System : Linux in-mum-web1259.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u490972518 ( 490972518) PHP Version : 5.6.40 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u490972518/domains/ppschool.org.in/public_html/code/img/../ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include("../link/databaseconnection.php"); $flag=$_REQUEST['flag']; if(!$flag) { header("location:http://gsmemorialpublicschool.brkweb.com"); } switch($flag) { case 1: $year=$_POST['year']; $board='CBSE BOARD'; $class=$_POST['class']; ?> <script> $(document).ready(function(){ $('#example').DataTable({ dom: 'Bfrtip', buttons: ['copy', 'csv', 'excel', 'pdf', 'print'] }); }); </script> <div class="table-responsive"> <marquee style="color:red">PT1 के भरने के बाद ही आप HALF Y का रिजल्ट अपडेट कर पाएंगे |</marquee> <h2 style="font-weight:bold;text-align:center"><?php echo $board;?></h2> <table id="example" class="display nowrap" cellspacing="0" width="100%" border="1px"> <thead> <tr> <th>Sr.</th><th>Sch.</th><th>Name</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </thead> <tfoot> <tr> <th>Sr.</th><th>Sch.</th><th>Name</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </tfoot> <tbody> <?php $sel="select * from registration where session='$year' and subject='$class' order by id asc"; $res=mysqli_query($conn,$sel); $s=1; while($row=mysqli_fetch_array($res,MYSQLI_BOTH)) { $application=$row['application']; $session=$year; $c=$row['subject']; if($c=='FIRST' or $c=='SECOND') { $link='mark_jun.php'; } if($c=='THIRD' or $c=='FOURTH') { $link='mar_third.php'; } if($c=='FIFTH' or $c=='SIXTH' or $c=='SEVENTH' or $c=='EIGHTH') { $link='mar_fourth.php'; } ?> <tr class="text-center"> <td><?php echo $s;?></td><td><?php echo $row['application'];?></td><td><?php echo $row['name'].'<br/><b>Father-</b>'.$row['fname'].'<br/><b>Mother-</b>'.$row['mname'].'<br/><b>Class-</b>'.$row['subject'];?></td><td><?php echo $row['dob'];?></td> <td> <?php $sel2="select * from six_eightresult where rol='$application' and session='$session' and area='PT1'"; $res2=mysqli_query($conn,$sel2); if($row2=mysqli_fetch_array($res2,MYSQLI_BOTH)) { echo 'PT1'; } echo '<br/>'; $sel21="select * from six_eightresult where rol='$application' and session='$session' and exam='HALF YEARLY EXAM' and mark1m>0"; $res21=mysqli_query($conn,$sel21); if($row21=mysqli_fetch_array($res21,MYSQLI_BOTH)) { echo 'HALF YEARLY EXAM'; } echo '<br/>'; $sel2="select * from six_eightresult where rol='$application' and session='$session' and area='PT2'"; $res2=mysqli_query($conn,$sel2); if($row2=mysqli_fetch_array($res2,MYSQLI_BOTH)) { echo 'PT2'; } echo '<br/>'; $sel21="select * from six_eightresult where rol='$application' and session='$session' and exam='ANNUAL EXAM' and mark1m>0"; $res21=mysqli_query($conn,$sel21); if($row21=mysqli_fetch_array($res21,MYSQLI_BOTH)) { echo 'ANNUAL EXAM'; } ?> </td> <td><button class="btn btn-primary" onclick="result(<?php echo $row['id'];?>,'PT1')">PT1/PT2</button> <button class="btn btn-primary" onclick="result1(<?php echo $row['id'];?>,'PT1')">UP PT1</button> <button class="btn btn-success" onclick="show2(<?php echo $row['id'];?>,'HALF YEARLY EXAM')">UP HALF</button> <br/><br/> <button class="btn btn-primary" onclick="result1(<?php echo $row['id'];?>,'PT2')">UP PT2</button> <button class="btn btn-success" onclick="show2(<?php echo $row['id'];?>,'ANNUAL EXAM')">UP AANUAL</button> <a href="#marksheet.php?flag=<?php echo $row['id'];?>" target='_blank'><span class="fa fa-print"> HALF</span></a>  <a href="<?php echo $link;?>?flag=<?php echo $row['id'];?>" target='_blank'><span class="fa fa-print"> Anual</span></a> </td> </tr> <?php $s++; } ?> </tbody> </table> </div> <?php break; case 2: $id=$_REQUEST['id']; $sel="select * from registration where id='$id'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['application']; ?> <script> $('#numberbox').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox1').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox2').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox3').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox4').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox5').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox6').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox7').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox8').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox9').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox10').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#n1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n10').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e10').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#y1').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y2').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y3').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y4').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y5').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y6').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y7').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y8').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y9').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y10').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $(document).ready(function(){ var class1=$("#class1").val(); if(class1=='FIRST') { $("#numberbox4").attr("readonly", "true"); $("#e5").attr("readonly", "true"); $("#y5").attr("readonly", "true"); $("#n5").attr("readonly", "true"); $("#numberbox4").val('0'); $("#e5").val('0'); $("#n5").val('0'); $("#y5").val('0'); } }); if(class1=='FIRST') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } $(document).ready(function(){ var class1=$("#class1").val(); if(class1=='SECOND') { $("#numberbox4").attr("readonly", "true"); $("#e5").attr("readonly", "true"); $("#y5").attr("readonly", "true"); $("#n5").attr("readonly", "true"); $("#numberbox4").val('0'); $("#e5").val('0'); $("#n5").val('0'); $("#y5").val('0'); } if(class1=='SECOND') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='FIRST') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='THIRD') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='FOURTH') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } }); </script> <form class="form-horizontal" id="regform12" onsubmit="return data(this)"> <input type="hidden" class="form-control" value="<?php echo $row['fname'];?>" name="fname" > <input type="hidden" class="form-control" value="<?php echo $row['mname'];?>" name="mname" > <input type="hidden" class="form-control" value="<?php echo $row['dob'];?>" name="dob" > <input type="hidden" class="form-control" value="<?php echo $row['mediam'];?>" name="mediam" > <input type="hidden" class="form-control" value="<?php echo $row['picture'];?>" name="image" > <div class="col-sm-4"><input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="rol" > <input type="hidden" class="form-control" value="0" name="id" > <input type="hidden" class="form-control" value="<?php echo $row['application'];?>" name="application" > </div> <div class="col-sm-4"><input type="hidden" class="form-control" value="<?php echo $row['name'];?>" name="name" ></div> <label class="col-sm-2 control-label"> </label> <div class="col-sm-4"><input type="hidden" class="form-control" value="<?php echo $row['subject'];?>" id='class1' name="class" ></div> <br/> <div class="form-group"> <label class="col-sm-2 control-label">Sch</label> <div class="col-sm-8"><input type="text" class="form-control" value="<?php echo $row['application'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Name</label> <div class="col-sm-8"><input type="text" class="form-control" value="<?php echo $row['name'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Session</label> <div class="col-sm-8"><input type="text" class="form-control" value="<?php echo $row['session'];?>" name="session" readonly /></div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Exam</label> <div class="col-sm-8"> <select required class="form-control" name="exam" > <option>PT1</option> <option>PT2</option> </select></div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">ENGLISH </label> <div class="col-sm-8">PT(10)<input type="text" id='numberbox1' class="form-control" name="mark2p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">HINDI </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox' class="form-control" name="mark1p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">MATH </label> <div class="col-sm-8">PT(10)<input type="text" id='numberbox2' class="form-control" name="mark3p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">SCIENCE / E.V.S. </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox3' class="form-control" name="mark4p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">S. SCIENCE </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox4' class="form-control" name="mark5p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">SANSKRIT </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox10' class="form-control" name="mark10p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">G.K. </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox8' class="form-control" name="mark9p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">COMPUTER </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox6' class="form-control" name="mark7p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">ART </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox7' class="form-control" name="mark8p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">S.U.P.W. </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox5' class="form-control" name="mark6p" required></div> </div> </div> <div class='col-sm-6'> <label class="col-sm-4 control-label">Att</label> <div class="col-sm-8">Att<input type="text" id='y9'class="form-control" name="att" required></div> </div> <div class='col-sm-6'> <center><button class="btn btn-primary" > Submit</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </div> </form> <?php break; case 3: $name=$_POST['name']; $mname=$_POST['mname']; $fname=$_POST['fname']; $dob=$_POST['dob']; $mediam=$_POST['mediam']; $image=$_POST['image']; $id=$_POST['id']; $application=$_POST['application']; $class=$_POST['class']; $area=$_POST['exam']; if($area=='PT1') { $exam='HALF YEARLY EXAM'; } else { $exam='ANNUAL EXAM'; } $session=$_POST['session']; $mark1p=$_POST['mark1p']; $mark1n=0; $mark1e=0; $mark1m=0; $mark2p=$_POST['mark2p']; $mark2n=0; $mark2e=0; $mark2m=0; $mark3p=$_POST['mark3p']; $mark3n=0; $mark3e=0; $mark3m=0; $mark4p=$_POST['mark4p']; $mark4n=0; $mark4e=0; $mark4m=0; $mark5p=$_POST['mark5p']; $mark5n=0; $mark5e=0; $mark5m=0; $mark6p=$_POST['mark6p']; $mark6n=0; $mark6e=0; $mark6m=0; $mark7p=$_POST['mark7p']; $mark7n=0; $mark7e=0; $mark7m=0; $mark8p=$_POST['mark8p']; $mark8n=0; $mark8e=0; $mark8m=0; $mark9p=$_POST['mark9p']; $mark9n=0; $mark9e=0; $mark9m=0; $mark10p=$_POST['mark10p']; $mark10n=0; $mark10e=0; $mark10m=0; $att=$_POST['att']; $date=date("d-m-Y"); if($id=='0') { $sel2="select * from six_eightresult where rol='$application' and session='$session' and area='$area'"; $res2=mysqli_query($conn,$sel2); $row2=mysqli_fetch_array($res2,MYSQLI_BOTH); if($row2) { echo 'Already Exist'; } else { $ins="insert into six_eightresult(rol,name,session,class,exam,mark1p,mark1n,mark1e,mark1m,mark2p,mark2n,mark2e,mark2m,mark3p,mark3n,mark3e,mark3m,mark4p,mark4n,mark4e,mark4m,mark5p,mark5n,mark5e,mark5m,mark6p,mark6n,mark6e,mark6m,mark7p,mark7n,mark7e,mark7m,mark8p,mark8n,mark8e,mark8m,mark9p,mark9n,mark9e,mark9m,mark10p,mark10n,mark10e,mark10m,mname,fname,dob,mediam,image,date,att,area) value('$application','$name','$session','$class','$exam','$mark1p','$mark1n','$mark1e','$mark1m','$mark2p','$mark2n','$mark2e','$mark2m','$mark3p','$mark3n','$mark3e','$mark3m','$mark4p','$mark4n','$mark4e','$mark4m','$mark5p','$mark5n','$mark5e','$mark5m','$mark6p','$mark6n','$mark6e','$mark6m','$mark7p','$mark7n','$mark7e','$mark7m','$mark8p','$mark8n','$mark8e','$mark8m','$mark9p','$mark9n','$mark9e','$mark9m','$mark10p','$mark10n','$mark10e','$mark10m','$mname','$fname','$dob','$mediam','$image','$date','$att','$area')"; if($res=mysqli_query($conn,$ins)) { echo" submit"; } else { echo"not submit"; } } } else { $up="update six_eightresult set mark1p='$mark1p',mark2p='$mark2p',mark3p='$mark3p',mark4p='$mark4p',mark5p='$mark5p',mark6p='$mark6p',mark7p='$mark7p',mark8p='$mark8p',mark9p='$mark9p',mark10p='$mark10p' where id='$id'"; if(mysqli_query($conn,$up)) { echo 'Update'; } else { echo 'Not update'; } } break; case 4: $id=$_REQUEST['id']; $exam=$_REQUEST['exam']; $sel="select * from registration where id='$id'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $session=$row['session']; $rol=$row['application']; $sel1="select * from six_eightresult where area='$exam' and session='$session' and rol='$rol'"; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); ?> <script> $('#numberbox').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox1').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox2').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox3').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox4').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox5').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox6').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox7').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox8').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox9').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox10').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#n1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n10').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e10').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#y1').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y2').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y3').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y4').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y5').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y6').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y7').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y8').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y9').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y10').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $(document).ready(function(){ var class1=$("#class1").val(); if(class1=='FIRST') { $("#numberbox4").attr("readonly", "true"); $("#e5").attr("readonly", "true"); $("#y5").attr("readonly", "true"); $("#n5").attr("readonly", "true"); $("#numberbox4").val('0'); $("#e5").val('0'); $("#n5").val('0'); $("#y5").val('0'); } }); if(class1=='FIRST') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } $(document).ready(function(){ var class1=$("#class1").val(); if(class1=='SECOND') { $("#numberbox4").attr("readonly", "true"); $("#e5").attr("readonly", "true"); $("#y5").attr("readonly", "true"); $("#n5").attr("readonly", "true"); $("#numberbox4").val('0'); $("#e5").val('0'); $("#n5").val('0'); $("#y5").val('0'); } if(class1=='SECOND') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='FIRST') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='THIRD') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='FOURTH') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } }); </script> <form class="form-horizontal" id="regform12" onsubmit="return data(this)"> <input type="hidden" class="form-control" value="<?php echo $row['fname'];?>" name="fname" > <input type="hidden" class="form-control" value="<?php echo $row['mname'];?>" name="mname" > <input type="hidden" class="form-control" value="<?php echo $row['dob'];?>" name="dob" > <input type="hidden" class="form-control" value="<?php echo $row['mediam'];?>" name="mediam" > <input type="hidden" class="form-control" value="<?php echo $row['picture'];?>" name="image" > <div class="col-sm-4"><input type="hidden" class="form-control" value="<?php echo $row1['id'];?>" name="id" > <input type="hidden" class="form-control" value="<?php echo $row['application'];?>" name="application" > </div> <div class="col-sm-4"><input type="hidden" class="form-control" value="<?php echo $row['name'];?>" name="name" ></div> <label class="col-sm-2 control-label"> </label> <div class="col-sm-4"><input type="hidden" class="form-control" value="<?php echo $row['subject'];?>" id='class1' name="class" ></div> <br/> <div class="form-group"> <label class="col-sm-2 control-label">Sch</label> <div class="col-sm-8"><input type="text" class="form-control" value="<?php echo $row['application'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Name</label> <div class="col-sm-8"><input type="text" class="form-control" value="<?php echo $row['name'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Session</label> <div class="col-sm-8"><input type="text" class="form-control" value="<?php echo $row['session'];?>" name="session" readonly /></div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Exam</label> <div class="col-sm-8"> <select required class="form-control" name="exam" > <option><?php echo $row1['area']?></option> </select></div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">ENGLISH </label> <div class="col-sm-8">PT(10)<input type="text" id='numberbox1' class="form-control" value='<?php echo $row1['mark2p'];?>' name="mark2p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">HINDI </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox' class="form-control" value='<?php echo $row1['mark1p'];?>' name="mark1p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">MATH </label> <div class="col-sm-8">PT(10)<input type="text" id='numberbox2' class="form-control" value='<?php echo $row1['mark3p'];?>' name="mark3p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">SCIENCE / E.V.S. </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox3' class="form-control" value='<?php echo $row1['mark4p'];?>' name="mark4p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">S. SCIENCE </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox4' class="form-control" name="mark5p" value='<?php echo $row1['mark5p'];?>' required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">SANSKRIT </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox10' class="form-control" value='<?php echo $row1['mark10p'];?>' name="mark10p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">G.K. </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox8' class="form-control" value='<?php echo $row1['mark9p'];?>' name="mark9p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">COMPUTER </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox6' class="form-control" name="mark7p" value='<?php echo $row1['mark7p'];?>' required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">ART </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox7' class="form-control" name="mark8p" value='<?php echo $row1['mark8p'];?>' required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">S.U.P.W. </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox5' class="form-control" name="mark6p" value='<?php echo $row1['mark6p'];?>' required></div> </div> </div> <div class='col-sm-6'> <label class="col-sm-4 control-label">Att</label> <div class="col-sm-8">Att<input type="text" id='y9'class="form-control" value='<?php echo $row1['att'];?>' name="att" required></div> </div> <div class='col-sm-6'> <center><button class="btn btn-primary" > Update</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </div> </form> <?php break; case 5: $id=$_REQUEST['id']; $exam=$_REQUEST['exam']; $sel="select * from registration where id='$id'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $session=$row['session']; $rol=$row['application']; $sel1="select * from six_eightresult where exam='$exam' and session='$session' and rol='$rol'"; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); ?> <script> $('#numberbox').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox1').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox2').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox3').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox4').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox5').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox6').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox7').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox8').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox9').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox10').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#n1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n10').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e10').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#y1').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y2').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y3').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y4').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y5').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y6').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y7').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y8').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y9').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y10').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $(document).ready(function(){ var class1=$("#class1").val(); if(class1=='FIRST') { $("#numberbox4").attr("readonly", "true"); $("#e5").attr("readonly", "true"); $("#y5").attr("readonly", "true"); $("#n5").attr("readonly", "true"); $("#numberbox4").val('0'); $("#e5").val('0'); $("#n5").val('0'); $("#y5").val('0'); } }); if(class1=='FIRST') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } $(document).ready(function(){ var class1=$("#class1").val(); if(class1=='SECOND') { $("#numberbox4").attr("readonly", "true"); $("#e5").attr("readonly", "true"); $("#y5").attr("readonly", "true"); $("#n5").attr("readonly", "true"); $("#numberbox4").val('0'); $("#e5").val('0'); $("#n5").val('0'); $("#y5").val('0'); } if(class1=='SECOND') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='FIRST') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='THIRD') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='FOURTH') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } }); </script> <form class="form-horizontal" id="regform12" onsubmit="return data1(this)"> <input type="hidden" class="form-control" value="<?php echo $row['fname'];?>" name="fname" > <input type="hidden" class="form-control" value="<?php echo $row['mname'];?>" name="mname" > <input type="hidden" class="form-control" value="<?php echo $row['dob'];?>" name="dob" > <input type="hidden" class="form-control" value="<?php echo $row['mediam'];?>" name="mediam" > <input type="hidden" class="form-control" value="<?php echo $row['picture'];?>" name="image" > <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row1['id'];?>" name="id" > <input type="hidden" class="form-control" value="<?php echo $row['application'];?>" name="application" > </div> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['name'];?>" name="name" ></div> <label class="col-sm-6 control-label"> </label> <div class="col-sm-6"><input type="hidden" class="form-control" value="<?php echo $row['subject'];?>" id='class1' name="class" ></div> <div class="form-group"> <br/> <label class="col-sm-6 control-label">Sch</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['application'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Name</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['name'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Session</label> <div class="col-sm-6"><input type="text" class="form-control" value="<?php echo $row['session'];?>" name="session" readonly /></div> </div> <div class="form-group"> <label class="col-sm-6 control-label">Exam</label> <div class="col-sm-6"> <select required class="form-control" name="exam" > <option><?php echo $row1['exam']?></option> </select></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">ENGLISH </label> <div class="col-sm-2">NB(5)<input type="text" id='n2' class="form-control" value='<?php echo $row1['mark2n']?>' name="mark2n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e2' class="form-control" value='<?php echo $row1['mark2e']?>' name="mark2e" required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y2'class="form-control" value='<?php echo $row1['mark2m']?>' name="mark2m" required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">HINDI </label> <div class="col-sm-2">N.B(5)<input type="text" id='n1' class="form-control" name="mark1n" value='<?php echo $row1['mark1n']?>' required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e1' class="form-control" name="mark1e" value='<?php echo $row1['mark1e']?>' required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y1' class="form-control" name="mark1m" value='<?php echo $row1['mark1m']?>' required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">MATH </label> <div class="col-sm-2">NB(5)<input type="text" id='n3' class="form-control" name="mark3n" value='<?php echo $row1['mark3n']?>' required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e3'class="form-control" name="mark3e" value='<?php echo $row1['mark3e']?>' required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y3' class="form-control" name="mark3m" value='<?php echo $row1['mark3m']?>' required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">SCIENCE / E.V.S. </label> <div class="col-sm-2">N.B.(5)<input type="text" id='n4' class="form-control" name="mark4n" value='<?php echo $row1['mark4n']?>' required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e4'class="form-control" name="mark4e" value='<?php echo $row1['mark4e']?>' required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y4' class="form-control" name="mark4m" value='<?php echo $row1['mark4m']?>' required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">S. SCIENCE </label> <div class="col-sm-2">N.B.(5)<input type="text" id='n5' class="form-control" name="mark5n" value='<?php echo $row1['mark5n']?>' required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e5'class="form-control" name="mark5e" value='<?php echo $row1['mark5e']?>' required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y5' class="form-control" name="mark5m" value='<?php echo $row1['mark5m']?>' required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">SANSKRIT </label> <div class="col-sm-2">N.B.(5)<input type="text" id='n10' class="form-control" name="mark10n" value='<?php echo $row1['mark10n']?>' required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e10'class="form-control" name="mark10e" value='<?php echo $row1['mark10e']?>' required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y10' class="form-control" name="mark10m" value='<?php echo $row1['mark10m']?>' required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">G.K. </label> <div class="col-sm-2">N.B.(5)<input type="text" id='n9' class="form-control" value='<?php echo $row1['mark9n']?>' name="mark9n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e9' class="form-control" name="mark9e" value='<?php echo $row1['mark9e']?>' required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y9'class="form-control" name="mark9m" value='<?php echo $row1['mark9m']?>' required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">COMPUTER </label> <div class="col-sm-2">N.B.(5)<input type="text" id='n7' class="form-control" value='<?php echo $row1['mark7n']?>' name="mark7n" required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e7' class="form-control" name="mark7e" value='<?php echo $row1['mark7e']?>' required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y7'class="form-control" name="mark7m" value='<?php echo $row1['mark7m']?>' required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">ART </label> <div class="col-sm-2">N.B.(5)<input type="text" id='n8' class="form-control" name="mark8n" value='<?php echo $row1['mark8n']?>' required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e8' class="form-control" name="mark8e" value='<?php echo $row1['mark8e']?>' required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y8'class="form-control" name="mark8m" value='<?php echo $row1['mark8m']?>' required></div> </div> <div class="form-group"> <br/> <label class="col-sm-4 control-label">S.U.P.W. </label> <div class="col-sm-2">N.B.(5)<input type="text" id='n6' class="form-control" name="mark6n" value='<?php echo $row1['mark6n']?>' required></div> <div class="col-sm-2">S.B.(5)<input type="text" id='e6' class="form-control" name="mark6e" value='<?php echo $row1['mark6e']?>' required></div> <div class="col-sm-2">HY/Y(80)<input type="text" id='y6'class="form-control" name="mark6m" value='<?php echo $row1['mark6m']?>' required></div> </div> <label class="col-sm-4 control-label">Att</label> <div class="col-sm-2">Att<input type="text" id='y9'class="form-control" value='<?php echo $row1['att']?>' name="att" required></div> </div> <center><button class="btn btn-primary" > Update</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </form> <?php break; case 6: //$rol=$_POST['rol']; $id=$_POST['id']; //$class=$_POST['class']; //$exam=$_POST['exam']; $session=$_POST['session']; //$mark1p=$_POST['mark1p']; $mark1n=$_POST['mark1n']; $mark1e=$_POST['mark1e']; $mark1m=$_POST['mark1m']; //$mark2p=$_POST['mark2p']; $mark2n=$_POST['mark2n']; $mark2e=$_POST['mark2e']; $mark2m=$_POST['mark2m']; //$mark3p=$_POST['mark3p']; $mark3n=$_POST['mark3n']; $mark3e=$_POST['mark3e']; $mark3m=$_POST['mark3m']; //$rank=$_POST['rank']; //$mark4p=$_POST['mark4p']; $mark4n=$_POST['mark4n']; $mark4e=$_POST['mark4e']; $mark4m=$_POST['mark4m']; //$mark5p=$_POST['mark5p']; $mark5n=$_POST['mark5n']; $mark5e=$_POST['mark5e']; $mark5m=$_POST['mark5m']; //$mark6p=$_POST['mark6p']; $mark6n=$_POST['mark6n']; $mark6e=$_POST['mark6e']; $mark6m=$_POST['mark6m']; //$mark7p=$_POST['mark7p']; $mark7n=$_POST['mark7n']; $mark7e=$_POST['mark7e']; $mark7m=$_POST['mark7m']; //$mark8p=$_POST['mark8p']; $mark8n=$_POST['mark8n']; $mark8e=$_POST['mark8e']; $mark8m=$_POST['mark8m']; //$mark9p=$_POST['mark9p']; $mark9n=$_POST['mark9n']; $mark9e=$_POST['mark9e']; $mark9m=$_POST['mark9m']; //$mark10p=$_POST['mark10p']; $mark10n=$_POST['mark10n']; $mark10e=$_POST['mark10e']; $mark10m=$_POST['mark10m']; $up="update six_eightresult set mark10n='$mark10n',mark10e='$mark10e',mark10m='$mark10m',mark1n='$mark1n',mark1e='$mark1e',mark1m='$mark1m',mark2n='$mark2n',mark2e='$mark2e',mark2m='$mark2m',mark3n='$mark3n',mark3e='$mark3e',mark3m='$mark3m',mark4n='$mark4n',mark4e='$mark4e',mark4m='$mark4m',mark5n='$mark5n',mark5e='$mark5e',mark5m='$mark5m',mark6n='$mark6n',mark6e='$mark6e',mark6m='$mark6m',mark7n='$mark7n',mark7e='$mark7e',mark7m='$mark7m',mark8n='$mark8n',mark8e='$mark8e',mark8m='$mark8m',mark9n='$mark9n',mark9e='$mark9e',mark9m='$mark9m',mark10n='$mark10n',mark10e='$mark10e',mark10m='$mark10m' where id='$id' "; if($res=mysqli_query($conn,$up)) { if($up) { echo "Update"; } else { echo "not"; } } else { echo"not submit"; } break; case 7: $year=$_POST['year']; $board='CBSE BOARD'; $class=$_POST['class']; ?> <script> $(document).ready(function(){ $('#example').DataTable({ dom: 'Bfrtip', buttons: ['copy', 'csv', 'excel', 'pdf', 'print'] }); }); </script> <div class="table-responsive"> <marquee style="color:red">PT1 के भरने के बाद ही आप HALF Y का रिजल्ट अपडेट कर पाएंगे |</marquee> <h2 style="font-weight:bold;text-align:center"><?php echo $board;?></h2> <table id="example" class="display nowrap" cellspacing="0" width="100%" border="1px"> <thead> <tr> <th>Sr.</th><th>Sch.</th><th>Name</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </thead> <tfoot> <tr> <th>Sr.</th><th>Sch.</th><th>Name</th><th>Dob</th><th>Action</th><th>Result</th> </tr> </tfoot> <tbody> <?php $sel="select * from registration where session='$year' and subject='$class' order by id asc"; $res=mysqli_query($conn,$sel); $s=1; while($row=mysqli_fetch_array($res,MYSQLI_BOTH)) { $application=$row['application']; $session=$year; $link='#'; ?> <tr class="text-center"> <td><?php echo $s;?></td><td><?php echo $row['application'];?></td><td><?php echo $row['name'].'<br/><b>Father-</b>'.$row['fname'].'<br/><b>Mother-</b>'.$row['mname'].'<br/><b>Class-</b>'.$row['subject'];?></td><td><?php echo $row['dob'];?></td> <td> <?php $sel2="select * from six_eightresult where rol='$application' and session='$session' and area='PT1'"; $res2=mysqli_query($conn,$sel2); if($row2=mysqli_fetch_array($res2,MYSQLI_BOTH)) { echo 'PT1'; } echo '<br/>'; $sel2="select * from six_eightresult where rol='$application' and session='$session' and exam='HALF YEARLY EXAM' and mark1m>0"; $res2=mysqli_query($conn,$sel2); if($row2=mysqli_fetch_array($res2,MYSQLI_BOTH)) { echo 'HALF YEARLY EXAM'; } echo '<br/>'; $sel2="select * from six_eightresult where rol='$application' and session='$session' and area='PT2'"; $res2=mysqli_query($conn,$sel2); if($row2=mysqli_fetch_array($res2,MYSQLI_BOTH)) { echo 'PT2'; } echo '<br/>'; $sel21="select * from six_eightresult where rol='$application' and session='$session' and exam='ANNUAL EXAM' and mark1m>0"; $res21=mysqli_query($conn,$sel21); if($row21=mysqli_fetch_array($res21,MYSQLI_BOTH)) { echo 'ANNUAL EXAM'; } ?> </td> <td><button class="btn btn-primary" onclick="result(<?php echo $row['id'];?>,'PT1')">PT1/PT2</button> <button class="btn btn-primary" onclick="result1(<?php echo $row['id'];?>,'PT1')">UP PT1</button> <button class="btn btn-success" onclick="show2(<?php echo $row['id'];?>,'HALF YEARLY EXAM')">UP HALF</button> <br/><br/> <button class="btn btn-primary" onclick="result1(<?php echo $row['id'];?>,'PT2')">UP PT2</button> <button class="btn btn-success" onclick="show2(<?php echo $row['id'];?>,'ANNUAL EXAM')">UP AANUAL</button> <a href="#marksheet.php?flag=<?php echo $row['id'];?>" target='_blank'><span class="fa fa-print"> HALF</span></a>  <a href="<?php echo $link;?>?flag=<?php echo $row['id'];?>" target='_blank'><span class="fa fa-print"> Anual</span></a> </td> </tr> <?php $s++; } ?> </tbody> </table> </div> <?php break; case 8: $id=$_REQUEST['id']; $sel="select * from registration where id='$id'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $rol=$row['application']; ?> <script> $('#numberbox').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox1').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox2').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox3').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox4').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox5').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox6').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox7').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox8').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox9').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox10').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#n1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n10').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e10').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#y1').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y2').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y3').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y4').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y5').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y6').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y7').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y8').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y9').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y10').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $(document).ready(function(){ var class1=$("#class1").val(); if(class1=='FIRST') { $("#numberbox4").attr("readonly", "true"); $("#e5").attr("readonly", "true"); $("#y5").attr("readonly", "true"); $("#n5").attr("readonly", "true"); $("#numberbox4").val('0'); $("#e5").val('0'); $("#n5").val('0'); $("#y5").val('0'); } }); if(class1=='FIRST') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } $(document).ready(function(){ var class1=$("#class1").val(); if(class1=='SECOND') { $("#numberbox4").attr("readonly", "true"); $("#e5").attr("readonly", "true"); $("#y5").attr("readonly", "true"); $("#n5").attr("readonly", "true"); $("#numberbox4").val('0'); $("#e5").val('0'); $("#n5").val('0'); $("#y5").val('0'); } if(class1=='SECOND') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='FIRST') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='THIRD') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='FOURTH') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } }); </script> <form class="form-horizontal" id="regform12" onsubmit="return data(this)"> <input type="hidden" class="form-control" value="<?php echo $row['fname'];?>" name="fname" > <input type="hidden" class="form-control" value="<?php echo $row['mname'];?>" name="mname" > <input type="hidden" class="form-control" value="<?php echo $row['dob'];?>" name="dob" > <input type="hidden" class="form-control" value="<?php echo $row['mediam'];?>" name="mediam" > <input type="hidden" class="form-control" value="<?php echo $row['picture'];?>" name="image" > <div class="col-sm-4"><input type="hidden" class="form-control" value="<?php echo $row['id'];?>" name="rol" > <input type="hidden" class="form-control" value="0" name="id" > <input type="hidden" class="form-control" value="<?php echo $row['application'];?>" name="application" > </div> <div class="col-sm-4"><input type="hidden" class="form-control" value="<?php echo $row['name'];?>" name="name" ></div> <label class="col-sm-2 control-label"> </label> <div class="col-sm-4"><input type="hidden" class="form-control" value="<?php echo $row['subject'];?>" id='class1' name="class" ></div> <br/> <div class="form-group"> <label class="col-sm-2 control-label">Sch</label> <div class="col-sm-8"><input type="text" class="form-control" value="<?php echo $row['application'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Name</label> <div class="col-sm-8"><input type="text" class="form-control" value="<?php echo $row['name'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Session</label> <div class="col-sm-8"><input type="text" class="form-control" value="<?php echo $row['session'];?>" name="session" readonly /></div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Exam</label> <div class="col-sm-8"> <select required class="form-control" name="exam" > <option>PT1</option> <option>PT2</option> </select></div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">ENGLISH W </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox' class="form-control" name="mark1p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">ENGLISH O </label> <div class="col-sm-8">PT(10)<input type="text" id='numberbox1' class="form-control" name="mark2p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">HINDI W </label> <div class="col-sm-8">PT(10)<input type="text" id='numberbox2' class="form-control" name="mark3p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">HINDI O </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox3' class="form-control" name="mark4p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">MATHS W </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox4' class="form-control" name="mark5p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">MATHS O </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox10' class="form-control" name="mark6p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">G.K. </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox8' class="form-control" name="mark7p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">CONVERSATION </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox6' class="form-control" name="mark8p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">ART </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox7' class="form-control" name="mark9p" required></div> </div> </div> <div class='col-sm-6'> <label class="col-sm-4 control-label">Att</label> <div class="col-sm-8">Att<input type="text" id='y9'class="form-control" name="att" required></div> </div> <div class='col-sm-6'> <center><button class="btn btn-primary" > Submit</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </div> </form> <?php break; case 9: $name=$_POST['name']; $mname=$_POST['mname']; $fname=$_POST['fname']; $dob=$_POST['dob']; $mediam=$_POST['mediam']; $image=$_POST['image']; $id=$_POST['id']; $application=$_POST['application']; $class=$_POST['class']; $area=$_POST['exam']; if($area=='PT1') { $exam='HALF YEARLY EXAM'; } else { $exam='ANNUAL EXAM'; } $session=$_POST['session']; $mark1p=$_POST['mark1p']; $mark1n=0; $mark1e=0; $mark1m=0; $mark2p=$_POST['mark2p']; $mark2n=0; $mark2e=0; $mark2m=0; $mark3p=$_POST['mark3p']; $mark3n=0; $mark3e=0; $mark3m=0; $mark4p=$_POST['mark4p']; $mark4n=0; $mark4e=0; $mark4m=0; $mark5p=$_POST['mark5p']; $mark5n=0; $mark5e=0; $mark5m=0; $mark6p=$_POST['mark6p']; $mark6n=0; $mark6e=0; $mark6m=0; $mark7p=$_POST['mark7p']; $mark7n=0; $mark7e=0; $mark7m=0; $mark8p=$_POST['mark8p']; $mark8n=0; $mark8e=0; $mark8m=0; $mark9p=$_POST['mark9p']; $mark9n=0; $mark9e=0; $mark9m=0; $mark10p=0; $mark10n=0; $mark10e=0; $mark10m=0; $att=$_POST['att']; $date=date("d-m-Y"); if($id=='0') { $sel2="select * from six_eightresult where rol='$application' and session='$session' and area='$area'"; $res2=mysqli_query($conn,$sel2); $row2=mysqli_fetch_array($res2,MYSQLI_BOTH); if($row2) { echo 'Already Exist'; } else { $ins="insert into six_eightresult(rol,name,session,class,exam,mark1p,mark1n,mark1e,mark1m,mark2p,mark2n,mark2e,mark2m,mark3p,mark3n,mark3e,mark3m,mark4p,mark4n,mark4e,mark4m,mark5p,mark5n,mark5e,mark5m,mark6p,mark6n,mark6e,mark6m,mark7p,mark7n,mark7e,mark7m,mark8p,mark8n,mark8e,mark8m,mark9p,mark9n,mark9e,mark9m,mark10p,mark10n,mark10e,mark10m,mname,fname,dob,mediam,image,date,att,area) value('$application','$name','$session','$class','$exam','$mark1p','$mark1n','$mark1e','$mark1m','$mark2p','$mark2n','$mark2e','$mark2m','$mark3p','$mark3n','$mark3e','$mark3m','$mark4p','$mark4n','$mark4e','$mark4m','$mark5p','$mark5n','$mark5e','$mark5m','$mark6p','$mark6n','$mark6e','$mark6m','$mark7p','$mark7n','$mark7e','$mark7m','$mark8p','$mark8n','$mark8e','$mark8m','$mark9p','$mark9n','$mark9e','$mark9m','$mark10p','$mark10n','$mark10e','$mark10m','$mname','$fname','$dob','$mediam','$image','$date','$att','$area')"; if($res=mysqli_query($conn,$ins)) { echo" submit"; } else { echo"not submit"; } } } else { $up="update six_eightresult set mark1p='$mark1p',mark2p='$mark2p',mark3p='$mark3p',mark4p='$mark4p',mark5p='$mark5p',mark6p='$mark6p',mark7p='$mark7p',mark8p='$mark8p',mark9p='$mark9p',mark10p='$mark10p' where id='$id'"; if(mysqli_query($conn,$up)) { echo 'Update'; } else { echo 'Not update'; } } break; case 10: $id=$_REQUEST['id']; $exam=$_REQUEST['exam']; $sel="select * from registration where id='$id'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $session=$row['session']; $rol=$row['application']; $sel1="select * from six_eightresult where area='$exam' and session='$session' and rol='$rol'"; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); ?> <script> $('#numberbox').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox1').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox2').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox3').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox4').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox5').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox6').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox7').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox8').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox9').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#numberbox10').keyup(function(){ if ($(this).val() > 10){ alert("No numbers above 10"); $(this).val('10'); } }); $('#n1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n10').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e10').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#y1').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y2').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y3').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y4').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y5').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y6').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y7').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y8').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y9').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y10').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $(document).ready(function(){ var class1=$("#class1").val(); if(class1=='FIRST') { $("#numberbox4").attr("readonly", "true"); $("#e5").attr("readonly", "true"); $("#y5").attr("readonly", "true"); $("#n5").attr("readonly", "true"); $("#numberbox4").val('0'); $("#e5").val('0'); $("#n5").val('0'); $("#y5").val('0'); } }); if(class1=='FIRST') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } $(document).ready(function(){ var class1=$("#class1").val(); if(class1=='SECOND') { $("#numberbox4").attr("readonly", "true"); $("#e5").attr("readonly", "true"); $("#y5").attr("readonly", "true"); $("#n5").attr("readonly", "true"); $("#numberbox4").val('0'); $("#e5").val('0'); $("#n5").val('0'); $("#y5").val('0'); } if(class1=='SECOND') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='FIRST') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='THIRD') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='FOURTH') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } }); </script> <form class="form-horizontal" id="regform12" onsubmit="return data(this)"> <input type="hidden" class="form-control" value="<?php echo $row['fname'];?>" name="fname" > <input type="hidden" class="form-control" value="<?php echo $row['mname'];?>" name="mname" > <input type="hidden" class="form-control" value="<?php echo $row['dob'];?>" name="dob" > <input type="hidden" class="form-control" value="<?php echo $row['mediam'];?>" name="mediam" > <input type="hidden" class="form-control" value="<?php echo $row['picture'];?>" name="image" > <div class="col-sm-4"><input type="hidden" class="form-control" value="<?php echo $row1['id'];?>" name="id" > <input type="hidden" class="form-control" value="<?php echo $row['application'];?>" name="application" > </div> <div class="col-sm-4"><input type="hidden" class="form-control" value="<?php echo $row['name'];?>" name="name" ></div> <label class="col-sm-2 control-label"> </label> <div class="col-sm-4"><input type="hidden" class="form-control" value="<?php echo $row['subject'];?>" id='class1' name="class" ></div> <br/> <div class="form-group"> <label class="col-sm-2 control-label">Sch</label> <div class="col-sm-8"><input type="text" class="form-control" value="<?php echo $row['application'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Name</label> <div class="col-sm-8"><input type="text" class="form-control" value="<?php echo $row['name'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Session</label> <div class="col-sm-8"><input type="text" class="form-control" value="<?php echo $row['session'];?>" name="session" readonly /></div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Exam</label> <div class="col-sm-8"> <select required class="form-control" name="exam" > <option><?php echo $row1['area']?></option> </select></div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">ENGLISH W </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox' class="form-control" value='<?php echo $row1['mark1p'];?>' name="mark1p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">ENGLISH O </label> <div class="col-sm-8">PT(10)<input type="text" id='numberbox1' class="form-control" value='<?php echo $row1['mark2p'];?>' name="mark2p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">HINDI W </label> <div class="col-sm-8">PT(10)<input type="text" id='numberbox2' class="form-control" value='<?php echo $row1['mark3p'];?>' name="mark3p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">HINDI O </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox3' class="form-control" value='<?php echo $row1['mark4p'];?>' name="mark4p" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">MATHS W </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox4' class="form-control" name="mark5p" value='<?php echo $row1['mark5p'];?>' required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">MATHS O </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox5' class="form-control" name="mark6p" value='<?php echo $row1['mark6p'];?>' required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">G.K. </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox6' class="form-control" name="mark7p" value='<?php echo $row1['mark7p'];?>' required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">CONVERSATION </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox7' class="form-control" name="mark8p" value='<?php echo $row1['mark8p'];?>' required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">ART </label> <div class="col-sm-8">PT.(10)<input type="text" id='numberbox8' class="form-control" value='<?php echo $row1['mark9p'];?>' name="mark9p" required></div> </div> </div> <div class='col-sm-6'> <label class="col-sm-4 control-label">Att</label> <div class="col-sm-8">Att<input type="text" id='y9'class="form-control" value='<?php echo $row1['att'];?>' name="att" required></div> </div> <div class='col-sm-6'> <center><button class="btn btn-primary" > Update</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </div> </form> <?php break; case 11: $id=$_REQUEST['id']; $exam=$_REQUEST['exam']; $sel="select * from registration where id='$id'"; $res=mysqli_query($conn,$sel); $row=mysqli_fetch_array($res,MYSQLI_BOTH); $session=$row['session']; $rol=$row['application']; $sel1="select * from six_eightresult where exam='$exam' and session='$session' and rol='$rol'"; $res1=mysqli_query($conn,$sel1); $row1=mysqli_fetch_array($res1,MYSQLI_BOTH); ?> <script> $('#numberbox').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#numberbox1').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#numberbox2').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#numberbox3').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#numberbox4').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#numberbox5').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#numberbox6').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#numberbox7').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#numberbox8').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#numberbox9').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#numberbox10').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#n1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#n10').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e1').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e2').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e3').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e4').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e5').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e6').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e7').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e8').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e9').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#e10').keyup(function(){ if ($(this).val() > 5){ alert("No numbers above 5"); $(this).val('5'); } }); $('#y1').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y2').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y3').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y4').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y5').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y6').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y7').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y8').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y9').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $('#y10').keyup(function(){ if ($(this).val() > 80){ alert("No numbers above 80"); $(this).val('80'); } }); $(document).ready(function(){ var class1=$("#class1").val(); if(class1=='FIRST') { $("#numberbox4").attr("readonly", "true"); $("#e5").attr("readonly", "true"); $("#y5").attr("readonly", "true"); $("#n5").attr("readonly", "true"); $("#numberbox4").val('0'); $("#e5").val('0'); $("#n5").val('0'); $("#y5").val('0'); } }); if(class1=='FIRST') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } $(document).ready(function(){ var class1=$("#class1").val(); if(class1=='SECOND') { $("#numberbox4").attr("readonly", "true"); $("#e5").attr("readonly", "true"); $("#y5").attr("readonly", "true"); $("#n5").attr("readonly", "true"); $("#numberbox4").val('0'); $("#e5").val('0'); $("#n5").val('0'); $("#y5").val('0'); } if(class1=='SECOND') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='FIRST') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='THIRD') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } if(class1=='FOURTH') { $("#numberbox10").attr("readonly", "true"); $("#e10").attr("readonly", "true"); $("#y10").attr("readonly", "true"); $("#n10").attr("readonly", "true"); $("#numberbox10").val('0'); $("#e10").val('0'); $("#n10").val('0'); $("#y10").val('0'); } }); </script> <form class="form-horizontal" id="regform12" onsubmit="return data1(this)"> <input type="hidden" class="form-control" value="<?php echo $row['fname'];?>" name="fname" > <input type="hidden" class="form-control" value="<?php echo $row['mname'];?>" name="mname" > <input type="hidden" class="form-control" value="<?php echo $row['dob'];?>" name="dob" > <input type="hidden" class="form-control" value="<?php echo $row['mediam'];?>" name="mediam" > <input type="hidden" class="form-control" value="<?php echo $row['picture'];?>" name="image" > <div class="col-sm-4"><input type="hidden" class="form-control" value="<?php echo $row1['id'];?>" name="id" > <input type="hidden" class="form-control" value="<?php echo $row['application'];?>" name="application" > </div> <div class="col-sm-4"><input type="hidden" class="form-control" value="<?php echo $row['name'];?>" name="name" ></div> <label class="col-sm-2 control-label"> </label> <div class="col-sm-4"><input type="hidden" class="form-control" value="<?php echo $row['subject'];?>" id='class1' name="class" ></div> <br/> <div class="form-group"> <label class="col-sm-2 control-label">Sch</label> <div class="col-sm-8"><input type="text" class="form-control" value="<?php echo $row['application'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Name</label> <div class="col-sm-8"><input type="text" class="form-control" value="<?php echo $row['name'];?>" readonly /></div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Session</label> <div class="col-sm-8"><input type="text" class="form-control" value="<?php echo $row['session'];?>" name="session" readonly /></div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Exam</label> <div class="col-sm-8"> <select required class="form-control" name="exam" > <option><?php echo $row1['exam']?></option> </select></div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">ENGLISH W </label> <div class="col-sm-8">H/A.(80)<input type="text" id='numberbox' class="form-control" value='<?php echo $row1['mark1m'];?>' name="mark1m" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">ENGLISH O </label> <div class="col-sm-8">H/A.(80)<input type="text" id='numberbox1' class="form-control" value='<?php echo $row1['mark2m'];?>' name="mark2m" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">HINDI W </label> <div class="col-sm-8">H/A.(80)<input type="text" id='numberbox2' class="form-control" value='<?php echo $row1['mark3m'];?>' name="mark3m" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">HINDI O </label> <div class="col-sm-8">H/A..(80)<input type="text" id='numberbox3' class="form-control" value='<?php echo $row1['mark4m'];?>' name="mark4m" required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">MATHS W </label> <div class="col-sm-8">H/A..(80)<input type="text" id='numberbox4' class="form-control" name="mark5m" value='<?php echo $row1['mark5m'];?>' required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">MATHS O </label> <div class="col-sm-8">H/A..(80)<input type="text" id='numberbox5' class="form-control" name="mark6m" value='<?php echo $row1['mark6m'];?>' required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">G.K. </label> <div class="col-sm-8">H/A..(80)<input type="text" id='numberbox6' class="form-control" name="mark7m" value='<?php echo $row1['mark7m'];?>' required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">CONVERSATION </label> <div class="col-sm-8">H/A..(80)<input type="text" id='numberbox7' class="form-control" name="mark8m" value='<?php echo $row1['mark8m'];?>' required></div> </div> </div> <div class='col-sm-6'> <div class="form-group"> <label class="col-sm-4 control-label">ART </label> <div class="col-sm-8">H/A..(80)<input type="text" id='numberbox8' class="form-control" value='<?php echo $row1['mark9m'];?>' name="mark9m" required></div> </div> </div> <div class='col-sm-6'> <label class="col-sm-4 control-label">Att</label> <div class="col-sm-8">Att<input type="text" id='y9'class="form-control" value='<?php echo $row1['att'];?>' name="att" required></div> </div> <div class='col-sm-6'> <center><button class="btn btn-primary" > Update</button>    <button class="btn btn-danger" data-dismiss="modal"> Close</button> </center> </div> </form> <?php break; case 12: //$rol=$_POST['rol']; $id=$_POST['id']; //$class=$_POST['class']; //$exam=$_POST['exam']; $session=$_POST['session']; //$mark1p=$_POST['mark1p']; //$mark1n=$_POST['mark1n']; //$mark1e=$_POST['mark1e']; $mark1m=$_POST['mark1m']; //$mark2p=$_POST['mark2p']; //$mark2n=$_POST['mark2n']; //$mark2e=$_POST['mark2e']; $mark2m=$_POST['mark2m']; //$mark3p=$_POST['mark3p']; //$mark3n=$_POST['mark3n']; //$mark3e=$_POST['mark3e']; $mark3m=$_POST['mark3m']; //$rank=$_POST['rank']; //$mark4p=$_POST['mark4p']; //$mark4n=$_POST['mark4n']; //$mark4e=$_POST['mark4e']; $mark4m=$_POST['mark4m']; //$mark5p=$_POST['mark5p']; //$mark5n=$_POST['mark5n']; //$mark5e=$_POST['mark5e']; $mark5m=$_POST['mark5m']; //$mark6p=$_POST['mark6p']; //$mark6n=$_POST['mark6n']; //$mark6e=$_POST['mark6e']; $mark6m=$_POST['mark6m']; //$mark7p=$_POST['mark7p']; //$mark7n=$_POST['mark7n']; //$mark7e=$_POST['mark7e']; $mark7m=$_POST['mark7m']; //$mark8p=$_POST['mark8p']; //$mark8n=$_POST['mark8n']; //$mark8e=$_POST['mark8e']; $mark8m=$_POST['mark8m']; $mark9m=$_POST['mark9m']; //$mark10m=$_POST['mark10m']; $up="update six_eightresult set mark1m='$mark1m',mark2m='$mark2m',mark3m='$mark3m',mark4m='$mark4m',mark5m='$mark5m',mark6m='$mark6m',mark7m='$mark7m',mark8m='$mark8m',mark9m='$mark9m' where id='$id' "; if($res=mysqli_query($conn,$up)) { if($up) { echo "Update"; } else { echo "not"; } } else { echo"not submit"; } break; } ?>