-
Notifications
You must be signed in to change notification settings - Fork 65
Closed
Description
Hi,
How to get the current user who is requested?
$app->get('/bank/list',function () {
$currentUser = ????? <---- any some method for get current user?
$sql = "SELECT * FROM bank WHERE userId = ." currentUser;
$stmt = getDB()->query($sql);
$result = $stmt->fetchAll(PDO::FETCH_OBJ);
echo json_encode($result);
}
);
sorry for bad english
Thx
Metadata
Metadata
Assignees
Labels
No labels