<?php

$user = "username";     // Put your username in here
$pass = "password";     // Put your password in here
$db = "grimforum";  // Put your database name in here

$admintable = "tblgf5admin";
$buddytable = "tblgf5buddy";
$calendartable = "tblgf5calendar";
$emailtable = "tblgf5email";
$forumtable = "tblgf5forum";
$grouptable = "tblgf5forumgroups";
$passwordtable = "tblgf5password";
$pmtable = "tblgf5pm";
$ratedtable = "tblgf5rated";
$searchtable = "tblgf5search";
$statstable = "tblgf5stats";
$sweartable = "tblgf5swear";
$topicsreadtable = "tblgf5topicsread";
$userstable = "tblgf5user";
$votetable = "tblgf5vote";
$votedtable = "tblgf5voted";
$gallerycommentstable = "tblgf5galcom";
$spelltable = "tblgf5spell";
$wordtable = "tblgf5words";


$link = mysql_connect( "localhost", $user, $pass );
if ( ! $link )
   die( "Could not connect to MySQL" );

$query = "CREATE DATABASE IF NOT EXISTS $db";
mysql_query( $query, $link ) or die ( "Error! : ".mysql_error() );

mysql_select_db( $db, $link ) or die ( "Could not open $db: ".mysql_error() );

?>