0% found this document useful (0 votes)
16 views4 pages

Market System Website

The Market System Website is a web-based platform for buying and selling products, developed using PHP and MySQL. It features user authentication, product management, order processing, and secure payment integration. Future enhancements include customer reviews, AI recommendations, improved UI/UX, and expanded payment options.

Uploaded by

parwa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views4 pages

Market System Website

The Market System Website is a web-based platform for buying and selling products, developed using PHP and MySQL. It features user authentication, product management, order processing, and secure payment integration. Future enhancements include customer reviews, AI recommendations, improved UI/UX, and expanded payment options.

Uploaded by

parwa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Title: Market System Website Development using PHP

Slide 1: Title Slide

Project Name: Market System Website


Technologies Used: PHP, MySQL, HTML, CSS, JavaScript
Presented by: [Your Name]

Slide 2: Project Overview

 The Market System is a web-based platform that allows users to buy and sell products online.

 It includes features such as user authentication, product management, order processing, and a
secure payment system.

 Developed using PHP and MySQL for backend, with HTML, CSS, and JavaScript for frontend.

Slide 3: Features & Functionalities

 User Management: Registration, login, and user roles (admin, seller, customer)

 Product Management: Adding, updating, and deleting products

 Cart System: Users can add products to their cart

 Order Management: Tracking customer orders

 Payment Integration: Secure online payments (e.g., PayPal, Stripe)

Slide 4: Database Design (MySQL)

Database: market_system

Users Table

CREATE TABLE users (

id INT AUTO_INCREMENT PRIMARY KEY,

name VARCHAR(100),

email VARCHAR(100) UNIQUE,

password VARCHAR(255),

role ENUM('admin', 'seller', 'customer')

);
Products Table

CREATE TABLE products (

id INT AUTO_INCREMENT PRIMARY KEY,

name VARCHAR(100),

description TEXT,

price DECIMAL(10,2),

stock INT,

seller_id INT,

FOREIGN KEY (seller_id) REFERENCES users(id)

);

Orders Table

CREATE TABLE orders (

id INT AUTO_INCREMENT PRIMARY KEY,

user_id INT,

total_price DECIMAL(10,2),

status ENUM('pending', 'shipped', 'delivered') DEFAULT 'pending',

order_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,

FOREIGN KEY (user_id) REFERENCES users(id)

);

Slide 5: User Authentication (PHP Code)

session_start();

include 'db.php';

$email = $_POST['email'];

$password = md5($_POST['password']);

$query = "SELECT * FROM users WHERE email='$email' AND password='$password'";

$result = mysqli_query($conn, $query);


if (mysqli_num_rows($result) > 0) {

$_SESSION['user'] = $email;

header('Location: dashboard.php');

} else {

echo 'Invalid login credentials';

Slide 6: Product Management (PHP Code)

<?php

include 'db.php';

$query = "SELECT * FROM products";

$result = mysqli_query($conn, $query);

while ($row = mysqli_fetch_assoc($result)) {

echo "<p>{$row['name']} - \${$row['price']} (Stock: {$row['stock']})</p>";

?>

Slide 7: Order Processing (PHP Code)

<?php

session_start();

include 'db.php';

$user_id = $_SESSION['user_id'];

$total_price = $_POST['total_price'];

$query = "INSERT INTO orders (user_id, total_price) VALUES ('$user_id', '$total_price')";

mysqli_query($conn, $query);

echo "Order placed successfully!";

?>

Slide 8: Frontend - Product Display (HTML & CSS)


<!DOCTYPE html>

<html>

<head>

<title>Market System</title>

<link rel="stylesheet" href="style.css">

</head>

<body>

<h2>Available Products</h2>

<div id="product-list"></div>

</body>

</html>

Slide 9: Payment Integration

 The system supports payment gateways like PayPal or Stripe.

 Transactions are securely processed using HTTPS and token-based authentication.

Slide 10: Conclusion & Future Enhancements

 Implement customer reviews & ratings

 Introduce AI-based recommendations

 Enhance UI/UX with modern design trends

 Expand payment options to include cryptocurrency

Thank You! Questions?

You might also like