<?php 
// Include the database config file 
include_once 'config.php'; 
 
 
    // Fetch state data based on the specific country 
	
		
	$query = "SELECT c3 FROM `tb_criteria` where c1= 'INCOME SOURCE' order by c3 ASC"; 
    $result = $con->query($query); 
     
    // Generate HTML of state options list 
    if($result->num_rows > 0){ 
        echo '<option value="">Select Source of Income</option>'; 
        while($row = $result->fetch_assoc()){  
            echo '<option value="'.ucwords($row['c3']).'">'.ucwords($row['c3']).'</option>'; 
        } 
    }else{ 
        echo '<option value="">Income not available</option>'; 
    } 
		


?>