Begun adding the full admin backend

Admin users can now create the users table (means whoever sets up the
site only needs to create a database then non-tech admin users can
continue from there), close registration and start the game.
This commit is contained in:
jcreek
2014-08-21 19:05:09 +01:00
parent 227c7a4066
commit 9697849acf
6 changed files with 163 additions and 7 deletions
+6 -5
View File
@@ -1,11 +1,12 @@
<?php
<?php //this code creates the database connection for all pages that need it
session_start();
$dbhost = "mysql.hostinger.co.uk"; // this will ususally be 'localhost', but can sometimes differ
$dbname = "u231858558_main"; // the name of the database that you are going to use for this project
$dbuser = "u231858558_user"; // the username that you created, or were given, to access your database
$dbpass = "Passwords1"; // the password that you created, or were given, to access your database
$dbhost = "localhost"; // this will ususally be 'localhost', but can sometimes differ
$dbname = "assassins"; // the name of the database that you are going to use for this project
$dbuser = "root"; // the username that you created, or were given, to access your database
$dbpass = "root"; // the password that you created, or were given, to access your database
mysql_connect($dbhost, $dbuser, $dbpass) or die("MySQL Error: " . mysql_error());
mysql_select_db($dbname) or die("MySQL Error: " . mysql_error());
//echo "success in database connection."; //Uncomment this line if you want to check if a page is loading this database connection code
?>