Location: PHPKode > projects > Bohemian CMS file manager > A_DOWNLOADS/utilities.inc
<?php

function member_db_connect() {
  
     $host = "localhost";  
    $user = "root";
    $pw = "";
    $database = "downloads_unsplit";

    $db = mysql_connect($host,$user,$pw)
       or die("Cannot connect to mySQL.");

    mysql_select_db($database,$db)
       or die("Cannot connect to database.");
   
    return $db;
}

function login_db_connect() {
   //returns a database handle which allows full updates to customer_logins 
   //and limited updates to customer_info

    $host = "localhost";  
    $user = "root";
    $pw = "";
    $database = "downloads_unsplit";

   $db = mysql_connect($host,$user,$pw)
       or die("Cannot connect to mySQL.");

   mysql_select_db($database,$db)
       or die("Cannot connect to database.");
       
   return $db;
}
Return current item: Bohemian CMS file manager