<?php 
	include 'includes/session.php';
	include 'includes/sessions.php';

	if(isset($_POST['id'])){
		$id = $_POST['id']; 
		$sql = "SELECT *  FROM users WHERE id = '$id'";
		$query = $conn->query($sql);
		$row = $query->fetch_assoc();

		echo json_encode($row);
	}
?>