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.
β
π 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
- π₯ Admin Login:
iqbolshoh
- π€ Seller Login:
user
- π€ User Login:
user
- π Password:
IQBOLSHOH
- πΉ 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
- πΉ Can list products for sale and manage their listings
- πΉ Can view and update their orders
- πΉ Manages their profile and product details
- πΉ Can browse products, add them to the cart, and purchase
- πΉ Can create and manage their profile
- πΉ Can view order history and track orders
To set up the PHP-MySQL Marketplace, follow these steps:
git clone https://github.com/Iqbolshoh/php-mysql-marketplace.git
cd php-mysql-marketplace
- Create a new MySQL database:
CREATE DATABASE marketplace;
- Import the database schema:
mysql -u yourusername -p marketplace < db/database.sql
- Open the
config.php
file 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
Database
class in theconfig.php
file
- Deploy on a PHP-compatible server (Apache, Nginx, or XAMPP)
- Open your browser and access:
http://localhost/php-mysql-marketplace
This project is open-source and available under the MIT License.
π― Contributions are welcome! If you have suggestions or want to enhance the project, feel free to fork the repository and submit a pull request.
π¬ I love meeting new people and discussing tech, business, and creative ideas. Letβs connect! You can reach me on these platforms: