The Cyber Lab Inventory System is a web-based application designed to manage and track computer components in a cyber lab. It allows users to add, view, update, and delete records of various components such as PCs, motherboards, GPUs, RAM sticks, power supplies, monitors, accessories, keyboards, and mice.
/c:/xampp/htdocs/inventory/
├── cyberScript.js
├── database.php
├── database_operations.php
├── formProcess.php
├── formStyle.css
├── homePage.html
├── inventoryForm.html
├── pcSetUpProcess.php
├── SQL_statement_generator.php
├── validate_error_functions.php
├── wLInventory.php
-
Install XAMPP:
- Download and install XAMPP from Apache Friends.
-
Clone the Repository:
- Clone this repository into the
htdocsdirectory of your XAMPP installation.
- Clone this repository into the
-
Start XAMPP:
- Open the XAMPP Control Panel and start the Apache and MySQL services.
-
Database Setup:
- Create a MySQL database named
inventory. - Import the SQL schema to create the necessary tables.
- Create a MySQL database named
-
Configure Database Connection:
- Update the database connection details in
database.php.
- Update the database connection details in
-
Set Writable Permissions:
- Ensure the error log paths in
pcSetUpProcess.phpanddatabase_operations.phpare writable.
- Ensure the error log paths in
- URL:
http://localhost/inventory/homePage.html - Displays the current inventory of PCs and allows users to add, update, or delete records.
- URL:
http://localhost/inventory/inventoryForm.html - Provides forms to add, view, update, and delete records for various components.
- cyberScript.js: Contains JavaScript functions for form handling and AJAX requests.
- formStyle.css: Contains CSS styles for the forms and layout.
Handles the backend processing for viewing, adding, updating, and deleting PC setup records.
Manages the database connection and provides methods to connect and close the database.
Contains classes for database operations such as insert, update, delete, and query.
Processes form submissions for adding, viewing, updating, and deleting records.
Generates SQL statements for insert and update operations.
Contains functions for validating input data and displaying errors.
Includes external file listings and utility functions such as finding primary key names.
- Errors are logged to
php-error.loganddatabase_operations_error_log.log. - Ensure these files are writable by the web server.
Created by Aaron C.