Market System Website
Market System Website
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.
User Management: Registration, login, and user roles (admin, seller, customer)
Database: market_system
Users Table
name VARCHAR(100),
password VARCHAR(255),
);
Products Table
name VARCHAR(100),
description TEXT,
price DECIMAL(10,2),
stock INT,
seller_id INT,
);
Orders Table
user_id INT,
total_price DECIMAL(10,2),
);
session_start();
include 'db.php';
$email = $_POST['email'];
$password = md5($_POST['password']);
$_SESSION['user'] = $email;
header('Location: dashboard.php');
} else {
<?php
include 'db.php';
?>
<?php
session_start();
include 'db.php';
$user_id = $_SESSION['user_id'];
$total_price = $_POST['total_price'];
mysqli_query($conn, $query);
?>
<html>
<head>
<title>Market System</title>
</head>
<body>
<h2>Available Products</h2>
<div id="product-list"></div>
</body>
</html>