This project is a flower selling website developed using PHP and MySQL.
- Product Catalog: Browse and search for various types of flowers.
- User Registration and Authentication: Users can create accounts and log in securely.
- Shopping Cart: Add flowers to a shopping cart and proceed to checkout.
- Order Management: Users can view their order history and current orders.
- Admin Panel: Manage products, orders, and user accounts.
- Frontend: HTML, CSS, JavaScript
- Backend: PHP
- Database: MySQL
-
Import Database:
- Create a MySQL database and import
database.sql
file included in the repository.
- Create a MySQL database and import
-
Configure Database Connection:
- Update
config.php
with your database credentials:<?php define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'root'); define('DB_PASSWORD', 'password'); define('DB_DATABASE', 'flower_db'); $db = mysqli_connect(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE); ?>
- Update
-
Start the Application:
- Navigate to the project directory and start a PHP server:
php -S localhost:8000
- Navigate to the project directory and start a PHP server:
-
Access the Application:
- Open your web browser and go to
http://localhost:8000
- Open your web browser and go to