π PHP MySQL Marketplace
This is an online marketplace platform built using PHP and MySQL, where users can buy and sell products with ease. The project demonstrates the use of PHP for server-side scripting and MySQL for database management.

π― Features
β
π User Registration & Login β Users can create accounts, log in, and manage their profiles
β
π Product Listings β Sellers can list products with price, description, and images
β
π Search & Filters β Users can search for products and filter them based on various criteria
β
π Shopping Cart β Users can add products to their cart and proceed to checkout
β
π¦ Order Management β Admins can manage orders and update order statuses
π Login Page

- π₯ Admin Login:
iqbolshoh - π€ Seller Login:
user - π€ User Login:
user - π Password:
IQBOLSHOH
π₯ User Roles
π Admin

- πΉ Manages the entire marketplace
- πΉ Can view and manage all users and their products
- πΉ Can update or delete any listings
- πΉ Oversees order management and resolves issues
- πΉ Can block users if needed
π Seller

- πΉ Can list products for sale and manage their listings
- πΉ Can view and update their orders
- πΉ Manages their profile and product details
π€ User (Customer)

- πΉ Can browse products, add them to the cart, and purchase
- πΉ Can create and manage their profile
- πΉ Can view order history and track orders
β‘ Installation Guide
To set up the PHP-MySQL Marketplace, follow these steps:
1οΈβ£ Clone the Repository
git clone https://github.com/Iqbolshoh/php-mysql-marketplace.git
2οΈβ£ Navigate to the Project Directory
cd php-mysql-marketplace
3οΈβ£ Set Up the Database
- Create a new MySQL database:
CREATE DATABASE marketplace; - Import the database schema:
mysql -u yourusername -p marketplace < db/database.sql
4οΈβ£ Configure Database Connection
-
Open the
config.phpfile in the root directory -
Update the database credentials:
<?php public function __construct() { $servername = "localhost"; $username = "your_username"; $password = "password"; $dbname = "marketplace"; $this->conn = new mysqli($servername, $username, $password, $dbname); if ($this->conn->connect_error) { die("Connection failed: " . $this->conn->connect_error); } } -
Ensure you have a
Databaseclass in theconfig.phpfile
5οΈβ£ Run the Application
- Deploy on a PHP-compatible server (Apache, Nginx, or XAMPP)
- Open your browser and access:
http://localhost/php-mysql-marketplace
π₯ Technologies Used
π License
This project is open-source and available under the MIT License.
π€ Contributing
π― Contributions are welcome! If you have suggestions or want to enhance the project, feel free to fork the repository and submit a pull request.
π¬ Connect with Me
π¬ I love meeting new people and discussing tech, business, and creative ideas. Letβs connect! You can reach me on these platforms: