Location: PHPKode > projects > Opensheet > opensheet/functions/db_connect.php
<?php
ini_set('display_errors',0);
error_reporting(E_ALL);
require ('config.inc.php');
function db_connect(){
mysql_connect(DBHOST,DBUSER,DBPASSWD)
       or die('I cannot connect to db: ' . mysql_error());
mysql_select_db(DBNAME);
}
?>
Return current item: Opensheet