This project demonstrates a simple product management system with features like adding products to a database and displaying them. The project uses HTML for front-end, PHP for server-side scripting, and MySQL for database management.
Follow the steps below to set up the project on your local machine.
Make sure you have the following software installed:
- XAMPP or a similar local server environment.
- A web browser (e.g., Chrome, Firefox).
```bash
git clone https://github.com/your-username/simple-product-management.git
```
-
Start your XAMPP server and ensure that Apache and MySQL are running.
sudo /opt/lampp/lampp start
-
Create a MySQL database named
shoe_store
.CREATE DATABASE shoe_store; USE shoe_store;
-
Create a
products
table in the database.CREATE TABLE products ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255) NOT NULL, price DECIMAL(10, 2) NOT NULL );
-
Copy the project files to your XAMPP's
htdocs
directory. -
Open your web browser and navigate to
http://localhost/web/index.php
. -
Use the provided form to add products to the database.
insert_product.html
: HTML file with a form for adding products.insert_product.php
: PHP file that processes the form data and inserts products into the database.
Feel free to contribute to the project by opening issues or submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.