<?php
  
 
if(isset($_POST["Checkedby"]) && isset($_POST["rStatus"]) && isset($_POST["rDescrip"]) && isset($_POST["user"]) && isset($_POST["tname"]) && isset($_POST["recordID"]) && isset($_POST["patientID"]))

{

  	$Checkedby= $_POST['Checkedby'];

	  $rStatus=$_POST['rStatus'];   
  
    $rDescrip= $_POST['rDescrip'];

   $recordID=$_POST['recordID'];   
  
     $user=$_POST['user'];

     $tname=$_POST['tname'];   

    $patientID= $_POST['patientID'];                                                     //CHECKING ENDS HERE
 
    $pStatus ="Not yet";

    require_once"labClass.php";

    $con=new labClass(); 

    $rQ= $con->updateMtestResultD($pStatus,$user,$recordID,$patientID,$tname,$rDescrip,$rStatus,$Checkedby); 
    //print_r($rQ);
    if($rQ->rowCount()>0)
          {
 
                ?>
                <small  class="text-success">Saved successfull!..</small>
                <?php
              
           } else
           {
               ?>
                <small class="text-danger">Saving failed, detail mismatch!..</small>
                <?php

           }
   
  
} 

?>