blob: af840e8d1b4cb9db2b84d56fe27cb79b98472af4 [file] [log] [blame]
<?
class DBConnectionLIVE {
#*****************************************************************************
#
# dbconnection.class.php
#
# Author: Denis Roy
# Date: 2004-08-05
#
# Description: Functions and modules related to the MySQL database connection
#
# HISTORY: THIS IS A READ-ONLY DB CONNECTION CLASS!
#
#*****************************************************************************
var $MysqlUrl = "localhost";
var $MysqlUser = "youneed";
var $MysqlPassword = "tochangethis";
var $MysqlDatabase = "live";
function connect()
{
static $dbh;
$dbh = mysql_connect($this->MysqlUrl, $this->MysqlUser, $this->MysqlPassword);
if (!$dbh) {
echo( "<P>Unable to connect to the database server at this time.</P>" );
}
$DbSelected = mysql_select_db($this->MysqlDatabase, $dbh);
return $dbh;
}
function disconnect() {
mysql_close();
}
}
?>