This is a basic e-commerce website built with PHP and MySQL. The project includes user login functionality, product checkout, and a simple user interface styled with CSS.
- User login/logout system
- User profile editing
- Product checkout functionality
- Database integration for product and user management
- Simple and clean UI with basic CSS styling
e_shop/
├── checklogin.php # Processes user login
├── checkout.php # Handles the checkout process
├── connectDB.php # Database connection setup
├── edituser.php # User profile editing
├── index.php # Homepage
├── login.php # Login form
├── logout.php # Logs out the user
├── style.css # Website styling
└── image/ # Contains images (e.g., product images, backgrounds)
- PHP 7.x or above
- MySQL or MariaDB
- Web server (e.g., Apache)
- Clone or download the repository.
- Place the project folder in your web server's root directory (e.g.,
htdocs
for XAMPP). - Create a MySQL database named
bookstore
. - Import the database schema and data using a
.sql
file (not included — create one or use phpMyAdmin to design tables). - Make sure your MySQL server is running on
localhost:3306
. - Edit
connectDB.php
if your MySQL username/password or host differs:$pdo = new PDO('mysql:host=localhost;port=3306;dbname=bookstore', 'root', '');