16 lines
371 B
PHP
16 lines
371 B
PHP
<?php
|
|
include('connection.php');
|
|
include('data_grabber.php');
|
|
|
|
$id = $_GET['id'];
|
|
|
|
$conn = OpenCon();
|
|
|
|
$selectSql = "SELECT * FROM Users WHERE id='$id'";
|
|
$selectQuery = mysqli_query($conn, $selectSql);
|
|
if(mysqli_num_rows($selectQuery) > 0){
|
|
echo json_encode(mysqli_fetch_assoc($selectQuery));
|
|
}else{
|
|
echo "0";
|
|
}
|
|
?>
|