$pdo_crud = new PDOCrud();
if ($pdo_crud->checkUserSession("userId")) {
if ($pdo_crud->checkUserSession("role", array("admin", "author", "editor"))) {
echo "Welcome ".$pdo_crud->getUserSession("userName");
echo $pdo_crud->dbTable("employee")->render();
}
echo "You don't have sufficient permission to access this page.";
} else {
echo "You are not allowed to access this page.";
}