# milan589/result-management-system architecture

> Architecture diagram of the GitHub repository milan589/result-management-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/milan589/result-management-system
- Repository: https://github.com/milan589/result-management-system

## Overview

This is a PHP-based school results management system. Teachers authenticate, manage student and teacher records, define exams, and enter results; students authenticate to view result information, while public-facing pages provide registration and result access. The sampled code shows PHP pages directly querying MySQL through a shared connection. Several result-display and CRUD pages are present in the tree, but their implementation details were not sampled, so their internal relationships are left unspecified.

Main entry points: [`config.php`](https://github.com/milan589/result-management-system/blob/main/config.php) (DB connection), [`login.php`](https://github.com/milan589/result-management-system/blob/main/login.php) (Login), [`studentinfo.php`](https://github.com/milan589/result-management-system/blob/main/studentinfo.php) (Student records), [`teacherinfo.php`](https://github.com/milan589/result-management-system/blob/main/teacherinfo.php) (Teacher records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity and enrollment"]
  node_registration["Registration<br/>[register.php]"]
  node_staff_creation["Staff creation<br/>[adduser.php]"]
  node_login["Login<br/>[login.php]"]
  node_session_end["Logout<br/>[logout.php]"]
  node_registration_copy["Registration variant"]
end

subgraph group_records["People administration"]
  node_student_records["Student records<br/>[studentinfo.php]"]
  node_student_edit["Edit student<br/>[updatestudent.php]"]
  node_student_delete["Delete student<br/>[deletestudent.php]"]
  node_teacher_records["Teacher records<br/>[teacherinfo.php]"]
  node_teacher_edit["Edit teacher<br/>[updateteacher.php]"]
  node_teacher_delete["Delete teacher<br/>[deleteteacher.php]"]
end

subgraph group_assessment["Exams and results"]
  node_exam_create["Create exam<br/>[addexam.php]"]
  node_exam_details["Exam details<br/>[examdetail.php]"]
  node_exam_edit["Edit exam"]
  node_result_entry["Enter result<br/>[addresult.php]"]
  node_result_display["Display results<br/>[displayresult.php]"]
  node_result_search["Result access<br/>[result.php]"]
  node_student_results["Student results<br/>[resultinfo.php]"]
  node_marksheet["Marksheet<br/>[marksheet.php]"]
end

subgraph group_runtime["Persistence"]
  node_db_config["DB connection<br/>[config.php]"]
  node_mysql[("MySQL database")]
end

node_visitor(("Visitor"))
node_student(("Student"))
node_teacher(("Teacher"))

node_visitor -->|"registers"| node_registration
node_visitor -->|"signs in"| node_login
node_student -->|"signs in"| node_login
node_teacher -->|"signs in"| node_login
node_student -.->|"views"| node_student_results
node_visitor -.->|"requests results"| node_result_search
node_login -->|"queries"| node_db_config
node_registration -->|"uses"| node_db_config
node_staff_creation -->|"uses"| node_db_config
node_student_records -->|"queries"| node_db_config
node_teacher_records -->|"queries"| node_db_config
node_student_edit -->|"uses"| node_db_config
node_teacher_edit -->|"uses"| node_db_config
node_exam_create -->|"uses"| node_db_config
node_exam_edit -->|"uses"| node_db_config
node_result_entry -->|"queries"| node_db_config
node_db_config -->|"connects"| node_mysql
node_student_records -->|"links to"| node_student_edit
node_student_records -->|"links to"| node_student_delete
node_teacher_records -->|"links to"| node_teacher_edit
node_teacher_records -->|"links to"| node_teacher_delete
node_exam_create -->|"redirects"| node_exam_details
node_registration_copy -->|"uses"| node_db_config

click node_registration "https://github.com/milan589/result-management-system/blob/main/register.php"
click node_staff_creation "https://github.com/milan589/result-management-system/blob/main/adduser.php"
click node_login "https://github.com/milan589/result-management-system/blob/main/login.php"
click node_session_end "https://github.com/milan589/result-management-system/blob/main/logout.php"
click node_student_records "https://github.com/milan589/result-management-system/blob/main/studentinfo.php"
click node_student_edit "https://github.com/milan589/result-management-system/blob/main/updatestudent.php"
click node_student_delete "https://github.com/milan589/result-management-system/blob/main/deletestudent.php"
click node_teacher_records "https://github.com/milan589/result-management-system/blob/main/teacherinfo.php"
click node_teacher_edit "https://github.com/milan589/result-management-system/blob/main/updateteacher.php"
click node_teacher_delete "https://github.com/milan589/result-management-system/blob/main/deleteteacher.php"
click node_exam_create "https://github.com/milan589/result-management-system/blob/main/addexam.php"
click node_exam_details "https://github.com/milan589/result-management-system/blob/main/examdetail.php"
click node_exam_edit "https://github.com/milan589/result-management-system/blob/main/updateexamdetail.php"
click node_result_entry "https://github.com/milan589/result-management-system/blob/main/addresult.php"
click node_result_display "https://github.com/milan589/result-management-system/blob/main/displayresult.php"
click node_result_search "https://github.com/milan589/result-management-system/blob/main/result.php"
click node_student_results "https://github.com/milan589/result-management-system/blob/main/resultinfo.php"
click node_marksheet "https://github.com/milan589/result-management-system/blob/main/marksheet.php"
click node_registration_copy "https://github.com/milan589/result-management-system/blob/main/tempCodeRunnerFile.php"
click node_db_config "https://github.com/milan589/result-management-system/blob/main/config.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_registration,node_staff_creation,node_login,node_session_end,node_registration_copy toneBlue
class node_student_records,node_student_edit,node_student_delete,node_teacher_records,node_teacher_edit,node_teacher_delete toneAmber
class node_exam_create,node_exam_details,node_exam_edit,node_result_entry,node_result_display,node_result_search,node_student_results,node_marksheet toneMint
class node_db_config,node_mysql toneRose
class node_visitor,node_student,node_teacher toneIndigo
```

## Components

### Identity and enrollment

- [Registration](https://github.com/milan589/result-management-system/blob/main/register.php): `register.php`
- [Staff creation](https://github.com/milan589/result-management-system/blob/main/adduser.php): `adduser.php`
- [Login](https://github.com/milan589/result-management-system/blob/main/login.php): `login.php`
- [Logout](https://github.com/milan589/result-management-system/blob/main/logout.php): `logout.php`
- [Registration variant](https://github.com/milan589/result-management-system/blob/main/tempCodeRunnerFile.php): `tempCodeRunnerFile.php`

### People administration

- [Student records](https://github.com/milan589/result-management-system/blob/main/studentinfo.php): `studentinfo.php`
- [Edit student](https://github.com/milan589/result-management-system/blob/main/updatestudent.php): `updatestudent.php`
- [Delete student](https://github.com/milan589/result-management-system/blob/main/deletestudent.php): `deletestudent.php`
- [Teacher records](https://github.com/milan589/result-management-system/blob/main/teacherinfo.php): `teacherinfo.php`
- [Edit teacher](https://github.com/milan589/result-management-system/blob/main/updateteacher.php): `updateteacher.php`
- [Delete teacher](https://github.com/milan589/result-management-system/blob/main/deleteteacher.php): `deleteteacher.php`

### Exams and results

- [Create exam](https://github.com/milan589/result-management-system/blob/main/addexam.php): `addexam.php`
- [Exam details](https://github.com/milan589/result-management-system/blob/main/examdetail.php): `examdetail.php`
- [Edit exam](https://github.com/milan589/result-management-system/blob/main/updateexamdetail.php): `updateexamdetail.php`
- [Enter result](https://github.com/milan589/result-management-system/blob/main/addresult.php): `addresult.php`
- [Display results](https://github.com/milan589/result-management-system/blob/main/displayresult.php): `displayresult.php`
- [Result access](https://github.com/milan589/result-management-system/blob/main/result.php): `result.php`
- [Student results](https://github.com/milan589/result-management-system/blob/main/resultinfo.php): `resultinfo.php`
- [Marksheet](https://github.com/milan589/result-management-system/blob/main/marksheet.php): `marksheet.php`

### Persistence

- [DB connection](https://github.com/milan589/result-management-system/blob/main/config.php): `config.php`
- **MySQL database**

### Other components

- **Visitor**
- **Student**
- **Teacher**

## Connections

- Visitor → Registration: registers (evidence: `register.php`)
- Visitor → Login: signs in (evidence: `login.php`)
- Student → Login: signs in (evidence: `login.php`)
- Teacher → Login: signs in (evidence: `login.php`)
- Student → Student results: views
- Visitor → Result access: requests results
- Login → DB connection: queries (evidence: `login.php`)
- Registration → DB connection: uses (evidence: `register.php`)
- Staff creation → DB connection: uses (evidence: `adduser.php`)
- Student records → DB connection: queries (evidence: `studentinfo.php`)
- Teacher records → DB connection: queries (evidence: `teacherinfo.php`)
- Edit student → DB connection: uses (evidence: `updatestudent.php`)
- Edit teacher → DB connection: uses (evidence: `updateteacher.php`)
- Create exam → DB connection: uses (evidence: `addexam.php`)
- Edit exam → DB connection: uses (evidence: `updateexamdetail.php`)
- Enter result → DB connection: queries (evidence: `addresult.php`)
- DB connection → MySQL database: connects (evidence: `config.php`)
- Student records → Edit student: links to (evidence: `studentinfo.php`)
- Student records → Delete student: links to (evidence: `studentinfo.php`)
- Teacher records → Edit teacher: links to (evidence: `teacherinfo.php`)
- Teacher records → Delete teacher: links to (evidence: `teacherinfo.php`)
- Create exam → Exam details: redirects (evidence: `addexam.php`)
- Registration variant → DB connection: uses (evidence: `tempCodeRunnerFile.php`)
