In this complete E-commerce Website, We will take a look at how to create Mobile Shop Using PHP and Mysql Database. We gonna start by creating an HTML template then convert it into PHP and then use MySQL database to fetch products and display it in the project.
Firstly, import the database from mobileshop.sql
Next, goto /func/DBConnect.php line 6, change the follow information:
protected $host = 'localhost';
protected $user = 'root';
protected $password = '';
protected $database = 'mobileshop';
- Homepage: https://ltp.crfnetwork.cyou/mobile-shop-backend/index.html
- Cart user=guest: https://ltp.crfnetwork.cyou/mobile-shop-backend/cart.html
- Product id=1: https://ltp.crfnetwork.cyou/mobile-shop-backend/product.html
- Login: https://ltp.crfnetwork.cyou/mobile-shop-backend/login.html
- Register: https://ltp.crfnetwork.cyou/mobile-shop-backend/register.html
- Account role=admin: https://ltp.crfnetwork.cyou/mobile-shop-backend/account.html
- Manage role=admin: https://ltp.crfnetwork.cyou/mobile-shop-backend/manage.html
- Make sure you have installed Xampp and turned on apache and mysql
- Fork the project and Clone it into C:/xampp/htdocs/
- Change the configuration at Setup database
- Open your browser at
http://localhost:<port>/<repository_name>/index.php
- Leave a Star for this project if you feel useful, thank you