<?php
//Include database configuration file
include('../Server/connection.php');

if(!empty($_POST["client_id"])){
	
	
    //Get all state data
    $query = $conn->query("SELECT * FROM client_files WHERE client_id = ".$_POST['client_id']."");
    
    //Count total number of rows
    $rowCount = $query->num_rows;
    
    //Display states list
    if($rowCount > 0){
        //echo '<option value="">Chagua Kata</option>';
        while($row = $query->fetch_assoc()){ 
            echo '<option value="'.$row['file_id'].'">'.$row['file_no'].'</option>';
        }
    }else{
        echo '<option value="">No File </option>';
    }
	

			
}


?>