Skip to content

lucthienphong1120/mobile-shop-backend

Repository files navigation

Mobile-Shop-E-Commerce-Website

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.

Setup database

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';

Demo static pages

Dynamic with PHP

  1. Make sure you have installed Xampp and turned on apache and mysql
  2. Fork the project and Clone it into C:/xampp/htdocs/
  3. Change the configuration at Setup database
  4. Open your browser at http://localhost:<port>/<repository_name>/index.php
  5. Leave a Star for this project if you feel useful, thank you