PHP. Вывести массив после авторизации

header('Access-Control-Allow-Origin: *');

$conn = new mysqli("localhost", "xxxx", "xxxx", "xxxx");

if($conn->connect_error){
   die("#4: " . $conn->connect_error);
}else{
   
$login = mysqli_real_escape_string($conn, $_POST['login']);
$password = mysqli_real_escape_string($conn, $_POST['password']);


$sql = "SELECT * FROM `accounts` WHERE login = '$login' and password = '$password'";
$result = mysqli_query($conn, $sql);
echo $result;
   
}

?>```

Ответы (0 шт):