Location: PHPKode > projects > Bohemian CMS file manager > A_DOWNLOADS/public.inc
<?php 
function public_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;
 }
Return current item: Bohemian CMS file manager