How syedrahaman92/oop_php works
OOP_PHP is a small PHP/MySQL CRUD application for viewing and managing user records. The browser-facing pages provide the main workflow: list records, add or edit a record with validation, and delete a record; the pages delegate database operations to a shared CRUD class. That class uses a MySQL connection configured by DbConfig. The README identifies database.sql as the schema setup script. Relationships below are grounded in the excerpts or README; database.sql contents were not sampled.
Main entry points: Crud.php CRUD Operations · index.php Record List · add.php Add Record · edit.php Edit Record
Components 10
CRUD Pages
- Record List
index.php - Add Record
add.php - Edit Record
edit.php - Delete Record
delete.php
Input Validation
- Validation
includes/Validation.php
Persistence
- CRUD Operations
includes/Crud.php - DB Configuration
includes/DbConfig.php - MySQL Database
- Database Schema
database.sql
Other components
- User
Connections 14
- User → Record List: views records
- Record List → CRUD Operations: fetches records
index.php - Record List → Add Record: links to
index.php - Record List → Edit Record: links to
index.php - Record List → Delete Record: links to
index.php - Add Record → Validation: validates input
add.php - Add Record → CRUD Operations: inserts record
add.php - Edit Record → Validation: validates input
edit.php - Edit Record → CRUD Operations: loads and updates
edit.php - Delete Record → CRUD Operations: deletes record
delete.php - CRUD Operations → DB Configuration: extends and initializes
includes/Crud.php - DB Configuration → MySQL Database: opens connection
includes/DbConfig.php - CRUD Operations → MySQL Database: queries records
includes/Crud.php - Database Schema → MySQL Database: sets up schema
README.md