<?php 
include('../Config/config.php');
	  
	  
	  	  $userExist = mysqli_query(get_db(), "SELECT * FROM member_details WHERE  memberID = '".$_GET['userID']."'");
		  
		  
		 // echo "SELECT * FROM member_details WHERE  sponser_id = '".$_GET['userID']."' AND position = '".$_GET['Position']."'";
		  //echo "SELECT * FROM member_details WHERE  memberID = '".$_GET['userID']."' and status = 1";
		 //echo "SELECT * FROM member_details WHERE username = '".$_GET['userID']."' OR memberID = '".$_GET['userID']."' OR member_id = '".$_GET['userID']."'  and status = 1";
  $fetch = mysqli_fetch_array($userExist);


  if(!empty($_GET['userID']) && mysqli_num_rows($userExist) > 0)
  {
  ?>
  
   
              <input disabled="disabled" type="text" id="sponser_id" name="sponser_name" class="form-control" value="<?php echo $fetch['name']; ?>"  placeholder="Sponser ID">
          
			  
  <?php }else{  ?>
  
              <input disabled="disabled" type="text" id="sponser_id" name="sponser_name" class="form-control" value="Not exist in system"  placeholder="Sponser ID" style="color:#FFF; background:#000033;">
         
 <?php  }

?>