<?php
if(isset($_GET['edit_id']))
{
	$id      = $_GET['edit_id'];
	$sql     = mysqli_query($cn, "select * from tbl_category where id='$id'");
	$sqlData = mysqli_fetch_array ($sql); 
}
if(isset($_GET['status']))
{
	$id      = $_GET['status'];
	$val     = $_GET['val'];
	$sql     = mysqli_query($cn, "update tbl_category SET `status`='$val' where id='$id'");			     
}							
?>
<div class="col-lg-12">    
    <div id="ErrorReg"></div>
    <div class="card">
        <div class="card-body">
            <h4 class="card-title">Upload SH Using Excel <a href="exam-sample-paper-formate.csv" style="float:right;">Download Sample File</a></h4>                   
            <form class="addQuestionExcel" method="post" enctype="multipart/form-data">                    
            <div class="row">                                                                                        
                <div class="col-md-5">
                    <div class="form-group">
                        <label for="exampleInputName1">Upload CSV File<span style="color:#F00;">*</span></label>
                        <input type="file" class="form-control" name="questionExcel" id="fileToUpload" required>                                    	
                    	<p id="errorUpload" style="color:#F00;display:none;">Allow Only - .csv Formate. Upload Upto 1000 Record At a Time.</p>
                    </div>                
                </div> 
                
                <div class="col-md-2">
                    <div class="form-group">        
                    	<label for="exampleInputName1">&nbsp;</label>                
                        <button type="submit" class="btn btn-success mr-2 form-control" name="add">Upload Now</button>                                    	                    	
                    </div>                
                </div>                                                                                                                           
            </div>            	            				                    
        </form>
        </div>
    </div>	
</div>    				
<br><br>                                   