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.
Goto /database/DBConnect.php line 7, change the follow code:
protected $host = 'localhost';
protected $user = 'root';
protected $password = '';
protected $database = 'mobileshop';
https://www.ltp110.tk/mobile-shop-database/index.html
https://www.ltp110.tk/mobile-shop-database/cart.html
https://www.ltp110.tk/mobile-shop-database/product.html
Make sure you have installed xampp and turned on apache and mysql
Clone the repository into C:/xampp/htdocs/
Change the configuration at /database/DBConnect.php
Open your browser at http://localhost:<port>/<repository_name>/index.php