<?php
	session_start();
	include"../../connect/db.php";

	csrf_verify();
	$user = $_POST['user'];
	
	$sql = mysqli_query($con,"SELECT * FROM beneficiary WHERE email = '$user' ");
	
	$row = mysqli_fetch_assoc($sql);
	
	echo'
        	<div class="conben">
        	    <div class="conimg"><img src="'.$row['img'].'" alt="'.$user.'" class="img-thumbnail"></div>
        	    <p  class="condet">Name : '.$row['f_name'].' '.$row['l_name'].'</p>
        	    <p  class="condet">Relationship : '.$row['relationship'].'</p>
        	    <p  class="condet">Phone : '.$row['phone'].'</p>
        	    <p  class="condet">Date Of Birth : '.$row['d_o_b'].'</p>
        	    <p  class="condet">Gender : '.$row['gender'].'</p>
        	    <p  class="condet">Address : '.$row['address'].'</p>
        	    <p  class="condet">City : '.$row['city'].'</p>
        	    <p  class="condet">State : '.$row['state'].'</p>
        	    <p  class="condet">Zip Code : '.$row['zip_code'].'</p>
        	</div>
        ';
            	
?>