Dit heb ik en toch werkt het niet waar kan ik anders nog naar kijken?
<?php
/*---------------------------------------------
MAIAN RECIPE v2.0
E-Mail: support@maianscriptworld.co.uk
Website:
www.maianscriptworld.co.uk This File: Database Connection File
Written by David Ian Bennett
----------------------------------------------*/
$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'] = 'localhost';
//----------------------------------------------
// USERNAME
// Username assigned to database
// Example: $database['username'] = 'admin';
//----------------------------------------------
$database['username'] = 'alex';
//----------------------------------------------
// PASSWORD
// Password assigned to database
// Example: $database['password'] = 'alexxxxxx';
//----------------------------------------------
$database['password'] = 'alexxxxxx';
//----------------------------------------------
// DATABASE NAME
// Name of Database that holds tables
// Example: $database['database'] = 'recipe';
//----------------------------------------------
$database['database'] = 'recepten';
//----------------------------------------------
// TABLE PREFIX
// For people with only 1 database
// Example: $database['prefix'] = 'mr_';
// DO NOT comment this line out. It is important
// to the script. Leave as default if not sure
//----------------------------------------------
$database['prefix'] = 'mr_';
//----------------------------------------------
// 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'] = 'mr_cookie';
$database['cookieKey'] = 'hfgfyf[]f[9874hg36g88sgshgyghtythfdt00kfte';
//================================
// DO NOT EDIT BELOW THIS LINE
//================================
$connect = @mysql_connect($database['host'],$database['username'],$database['password']);
if (!$connect) {
die ('MySQL Error!!<br><br>Connection to the database has failed, this is the reason:<br /><br />'.mysql_error().'<br><br>Check your connection information.');
}
@mysql_select_db($database['database'], $connect) or die (mysql_error());
?>