function connect()
{
$this->id = mysql_connect($GLOBALS['conf']['host'], $GLOBALS['conf']['username'], $GLOBALS['conf']['password']) or die(mysql_error());
if ($this->id) {
$this->connection = true;
$this->select();
} else {
$this->connection = false;
$this->error = mysql_error($this->id);
}
}
// Disonnect, then set $this->connection to true
// if connected or false if not connected
function disconnect()
{
if ($this->connection) {
mysql_close($this->id);
$this->connection = false;
}
}
help me