<?php require_once './db_connection.php'; require_once './modules/user.mod.php'; $id = $_GET['id']; $pass = $_GET['pass']; $user = User :: find ($id); if ($user -> pass === $pass) echo implode (',', [1, $user -> name]); else echo '0';