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