Exemplo n.º 1
0
 public static function get_project_id($id = 0)
 {
     $database = $_SESSION['database'];
     $employees_roles_query = $database->query("select roles_id from " . TABLE_EMPLOYEES_ROLES . " where employees_roles_id = '" . (int) $id . "'");
     $employees_roles_result = $database->fetch_array($employees_roles_query);
     return role::get_project_id($employees_roles_result['roles_id']);
 }