<?php
class Database
{
     
    private $host = "localhost";
    private $db_name = "citycred_finance";
    private $username = "citycred_finance";
    private $password = "citycred_finance";
    public $conn;
     
    public function dbConnection()
	{
     
	    $this->conn = null;
	    $DB_con = null;
        try
		{
            $this->conn = new PDO("mysql:host=" . $this->host . ";dbname=" . $this->db_name, $this->username, $this->password);
			$this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);	
			
        }
		catch(PDOException $exception)
		{
            echo "Connection error: " . $exception->getMessage();
        }
         
        return $this->conn;
    }
}

$connection = mysqli_connect('localhost', 'citycred_finance', 'citycred_finance');
if (!$connection){
    die("Database Connection Failed" . mysqli_error($connection));
}
$select_db = mysqli_select_db($connection, 'citycred_finance');
if (!$select_db){
    die("Database Selection Failed" . mysqli_error($connection));
}



//WEBSITE COLOR SETTINGS
$heading = '#180d3e'; 
$text = 'white';




//ONLINE BANKING DATA SETTINGS
$site_title = 'City Financial Credits';
$site_address = '850 Main Street Bridgeport, CT 06604';
$site_initial = 'City Financial Credits';
$site_email = 'info@citycreditfinance.com'; 
$live_chat_id = ''; 



$DB_host = "localhost";
$DB_user = "citycred_finance";
$DB_pass = "citycred_finance";
$DB_name = "citycred_finance";


     $host = "localhost";
    $database = "citycred_finance";
    $username = "citycred_finance";
    $password = "citycred_finance";

try
{
	$DB_con = new PDO("mysql:host={$DB_host};dbname={$DB_name}",$DB_user,$DB_pass);
	$DB_con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
catch(PDOException $e)
{
	echo $e->getMessage();
}