<?php
    $pass   = $_POST['pass'];
	$name   = $_POST['name'];
	$mobile = $_POST['mobile'];
	$email  = $_POST['email'];
	$state  = $_POST['state'];
	$district=$_POST['district'];
	$pin=$_POST['pin'];
	$address=$_POST['address'];
	$parentId=$_POST['parent'];
		
	if($state!=="--Select State--" || $district!=="--Select District--")
	{
		$quUpdate="UPDATE user SET Name='$name', Password='$pass', Mobile='$mobile', Mail='$email', State='$state', City='$district',  Address='$address',  Pincode='$pin', Parent='$parentId'  WHERE Userid='$uid'";          
		if(mysqli_query($con,$quUpdate))
		{
			$respoStatus="SUCCESS";
			$respo_msg="Profile has been changed successfully !";
			include'../LinkFile/respoPanel.php';
		}
		else
		{
		    $respoStatus="FAILED";
			$respo_msg="Something Error !";
			include'../LinkFile/respoPanel.php';
        }
	}
	else
	{
		$respoStatus="FAILED";
		$respo_msg="Something Error !";
		include'../LinkFile/respoPanel.php';
	}

?>