A simple e-commerce web application built with PHP and MySQL.
- User registration and login
- Product browsing by categories
- Shopping cart
- Checkout and order management
- Shipping address management
- User account settings
- Admin panel for product management
- PHP 5.6+
- MySQL 5.6+
- A web server (e.g. Apache with mod_php)
- phpMyAdmin (optional, for database management)
-
Clone the repository:
git clone https://github.com/Krzykoz/Sklep-PHP.git
-
Import the database schema:
- Create a MySQL database named
mydb. - Import
mydb.sqlusing phpMyAdmin or the MySQL CLI:mysql -u root mydb < mydb.sql
- Create a MySQL database named
-
Configure the database connection in
website/conn.phpif your credentials differ from the defaults (rootwith no password onlocalhost). -
Point your web server's document root to the
website/directory (or access it via your existing server setup). -
Open the application in your browser.
├── mydb.sql # Database schema and seed data
└── website/
├── index.php # Main entry point
├── conn.php # Database connection
├── register.php # User registration
├── login.php # User login
├── cart.php # Shopping cart
├── checkout.php # Checkout page
├── orders.php # Order history
├── account.php # User account
├── main.css # Stylesheet
├── images/ # Product and site images
└── admin/ # Admin panel
This project does not currently specify a license.