Exemplo n.º 1
0
 public function initializeDB()
 {
     # New mysqli Object for database communication
     self::$database = new mysqli("localhost", "tardissh_kles", "8608!", "tardissh_lestarge");
     # Kill the page is there was a problem with the database connection
     if (self::$database->connect_error) {
         die("Connection Error! Error: " . $this->database->connect_error);
     }
 }
Exemplo n.º 2
0
 <?php 
require 'class.dj.php';
$dj = new dj();
session_start();
?>
<!DOCTYPE html>
<html>
	<head>
		<title>Dragon Journal</title>
		<link rel="icon" type="image/png" href="http://www.obsidianportal.com/favicon.ico">
		<link rel="stylesheet" type="text/css" href="styles.css">
		<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
	</head>
	<body class='main'>

		<h1 class="center_text">Dragon Journal</h1>

		<hr color="black" size="3" width="100%">

		<h2 class='center_text blu'>Database Table Structure</h2>
		<br>

		<div class="row">
		  <div class="col-md-3">
	  		<div class="diagram hvr-wobble-top">
	  			<h4 class="dHead">dj_dragon</h4>
	  			<p class="dragID">id</p>
	  			<p>type</p>
  			</div>
		  </div>
		  	<div class="col-md-3">