Home
Softono
php-mysql-marketplace

php-mysql-marketplace

Open source CSS
37
Stars
5
Forks
0
Issues
1
Watchers
1 year
Last Commit

About php-mysql-marketplace

# πŸ›’ 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**. ![πŸ› Marketplace Banner](./src/images/banner.png?raw=true) --- ## 🎯 **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** ![πŸ”‘ Login Roles](./src/images/roles.png?raw=true) - **πŸ–₯ Admin Login:** `iqbolshoh` - **πŸ‘€ Seller Login:** `user` - **πŸ‘€ User Login:** `user` - **πŸ”‘ Password:** `IQBOL ...

Platforms

Web Self-hosted

Languages

CSS

Links

πŸ›’ 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.

πŸ› Marketplace Banner


🎯 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

πŸ”‘ Login Roles

  • πŸ–₯ Admin Login: iqbolshoh
  • πŸ‘€ Seller Login: user
  • πŸ‘€ User Login: user
  • πŸ”‘ Password: IQBOLSHOH

πŸ‘₯ User Roles

πŸ† Admin

βš™ Admin Panel

  • πŸ”Ή 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

πŸ› Seller Panel

  • πŸ”Ή Can list products for sale and manage their listings
  • πŸ”Ή Can view and update their orders
  • πŸ”Ή Manages their profile and product details

πŸ‘€ User (Customer)

πŸ› User Panel

  • πŸ”Ή 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.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 the config.php file

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

HTML CSS Bootstrap JavaScript jQuery PHP MySQL

πŸ“œ 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: