Skip to content

evilstarksai/CLUBS_IITK

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โš™๏ธ Technology Used

  1. HTML5
  2. CSS3
  3. Core/Procedural PHP programming language
  4. MySQL Relational Database

๐Ÿ“– How to Download the Project and Run on your PC?

Pre-Requisites:

  1. Download and Install XAMPP

Click Here to Download

  1. Install any Text Editor (Sublime Text or Visual Studio Code or Atom or Brackets)

Installation

  1. Download as as Zip or Clone this project
  2. Move this project to the afore-mentioned Directory
Local Disc C: -> xampp -> htdocs -> 'this project'

Local Disk C is the location where xampp was installed

  1. Open XAMPP Control Panel and Start 'Apache' and 'MySQL' If the 'MySQL' doesnt start( it shows an error regarding an unavailable port), click the config button in the MySQL row in the control panel. after clicking the config button, open the my.ini text file in the dropdown. This file contains a port-number mentioned several times(3306). Change the port number to some other number which is free/available in the netstat window.(The netstat button is available on the right in the control panel)

  2. Importing Database

a. Open localhost in your browser and go to 'phpmyadmin' b. Create a Database with the name 'clubs_iitk' without the quotes c. Import the SQL file provided with this project

  1. Make Changes to settings

Go to 'config' folder and Open 'constants.php' file. Then make changes shown in comments below.

<?php 
//Start Session
session_start();

//Create Constants to Store Non Repeating Values
define('SITEURL', 'http://localhost/CLUBS_IITK/'); //Update the home URL of the project if you have changed port number or it's live on server
define('LOCALHOST', 'localhost');
define('DB_USERNAME', 'root');        
define('DB_PASSWORD', '');                     // the password here should match the password for MySQL 
define('DB_NAME', 'clubs_iitk');
    
$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 using 'localhost/CLUBS_IITK'. It should run perfectly.

About

Website for clubs of IITK to request for various positions in the clubs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 95.8%
  • CSS 3.8%
  • Hack 0.4%