Location: PHPKode > projects > Maian Gallery > maian_gallery/inc/db_connection.inc.php
<?php

/*+++++++++++++++++++++++++++++++++++++++++++++

  Script: Maian Gallery v2.0
  Written by: David Ian Bennett
  E-Mail: hide@address.com
  Website: http://www.maianscriptworld.co.uk

  +++++++++++++++++++++++++++++++++++++++++++++
  
  This File: db_connection.inc.php
  Description: Database connection file

  +++++++++++++++++++++++++++++++++++++++++++++*/

$database = array();

//========================================================================================================
// NOTE: EDIT YOUR SQL CONNECTION INFORMATION BELOW. THE VARIABLES ARE ARRAY VARIABLES AND MUST NOT
// BE CHANGED. IE: $database['username']. DO NOT CHANGE THESE NAMES. ONLY THE VALUES SHOULD BE CHANGED
//========================================================================================================

//------------------------------------------------------
// HOST
// This is usually localhost or your server ip address
// Example: $database['host'] = 'localhost';
//------------------------------------------------------

$database['host']          = 'database host goes here..';

//----------------------------------------------
// USERNAME
// Username assigned to database
// Example: $database['username'] = 'david';
//----------------------------------------------

$database['username']      = 'database username goes here..';

//----------------------------------------------
// PASSWORD
// Password assigned to database
// Example: $database['password'] = 'abc1234';
//----------------------------------------------

$database['password']      = 'database password goes here..';

//----------------------------------------------
// DATABASE NAME
// Name of Database that holds tables
// Example: $database['database'] = 'gallery';
//----------------------------------------------

$database['database']      = 'database name goes here..';

//----------------------------------------------
// TABLE PREFIX
// For people with only 1 database
// Example: $database['prefix'] = 'mga_';
// DO NOT comment this line out. It is important
//  to the script.
//----------------------------------------------

$database['prefix']        = 'mga_';

//----------------------------------------------
// COOKIE SANITATION
// Choose secret key for cookie and cookie name.
// The longer and more complex the better..
// Random characters or phrase for key
//----------------------------------------------

$database['cookieName']    = 'mg_cookie';
$database['cookieKey']     = 'hfgfyf[]f[9874hg36g88sgsfdt00kfte';

//================================
// DO NOT EDIT BELOW THIS LINE
//================================

$connect = @mysql_connect($database['host'] , $database['username'] , $database['password']);

if (!$connect)
{
	die (mysql_error());
}
mysql_select_db($database['database'], $connect) or die (mysql_error());

?>
Return current item: Maian Gallery