<?php
session_start();
require_once 'controllers/DbController.php';
include_once 'controllers/UserController.php';
$login_true = mysqli_query($db,'SELECT `id`,`username`,`password`, `role`, `owner` FROM `users`');
if ($login_true) {
$name = mysqli_fetch_assoc($login_true);
$_SESSION['login_user'] = $login_true;
$_SESSION['user_name'] = $name['username'];
echo "Welcome, ".$_SESSION["user_name"];
}
?>