BestPricesStore is a PHP-based inventory management system that allows users to perform CRUD (Create, Read, Update, Delete) operations on product items using a MySQL database. The project includes an interactive interface to manage product data efficiently.
- Add new items to the database
- Update existing item details
- Delete items from the database
- Display available items in the inventory
- Connects to a MySQL database via PHP
- Backend: PHP
- Database: MySQL (phpMyAdmin)
- Server: Apache (XAMPP, LAMP, or WAMP)
- Frontend: HTML, CSS (if applicable)
/BestPricesStore
│── Database.php # Database connection
│── index.php # Main entry point
│── insert_item.php # Insert new items into the database
│── delete_item.php # Delete items from the database
│── update_item.php # Update item details
│── display_item.php # Display stored items
│── /database # (Optional) SQL export file for database setup
- Clone the Repository
git clone https://github.com/your-username/BestPricesStore.git
- Import the Database
- Open phpMyAdmin
- Create a new database (e.g.,
bestpricesstore) - Import the provided
.sqlfile in the/databasefolder (if available)
- Configure Database Connection
- Open
Database.php - Update the credentials (host, username, password, database name)
$host = "localhost"; $user = "root"; $password = ""; # Change if necessary $database = "bestpricesstore";
- Open
- Run the Project
- Start Apache and MySQL in XAMPP/WAMP/LAMP
- Open a web browser and visit:
http://localhost/BestPricesStore/index.php
- Insert Items: Use
insert_item.phpto add products. - Delete Items:
delete_item.phpremoves records. - Update Items: Modify details via
update_item.php. - Display Items:
display_item.phpshows all stored products.
- Add a login system for admin authentication
- Improve the UI with Bootstrap
- Implement AJAX for smoother operations
This project is licensed under the MIT License.
Feel free to contribute by submitting a pull request!