Skip to content

Ravenclaw-Hcmut/db

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. Download as as Zip or Clone this project

  2. Import Database

Database in model folder

  1. Make Changes to settings

Go to 'config' folder and Open 'copyconstants.php' file. Then make changes on following constants

turn on powershell and cp config/constants.php config/copyconstant.php

<?php 
//Start Session
session_start();

//Create Constants to Store Non Repeating Values
define('SITEURL', 'http://localhost/'); //Update the home URL of the project if you have changed port number or 
define('view','http://localhost/view/');//
define('Ppath','http://localhost/public/');//
define('controller','http://localhost/controller/');//


define('LOCALHOST', 'localhost');//Update your port database
define('DB_USERNAME', 'root');// database name
define('DB_PASSWORD', ''); // password
define('DB_NAME', 'restaurant');
    
$conn = mysqli_connect(LOCALHOST, DB_USERNAME, DB_PASSWORD) or die(mysqli_error()); //Database Connection
$db_select = mysqli_select_db($conn, DB_NAME) or die(mysqli_error()); //SElecting Database 

?>
  1. Now, Open the project in your browser. It should run perfectly.

  2. Photo: https://photos.google.com/share/AF1QipPfln5UPLYBo7RBN_Y8zFGAb6JpWsgarGS8pCx9ZZtR3R3V3dTb5Le15LdeBbWsVw?key=RmxjdzNnemNwUk5VSFNnU3ZUcE5fSW1rNnNaV2F3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 86.4%
  • JavaScript 9.2%
  • CSS 4.3%
  • Hack 0.1%