Location: PHPKode > scripts > Create Your Own Directory > cms/db-connect.php
<?php
//include db parameters
include "auth/config.php";

//include the mysql class file
include_once("auth/mysql.class.php");

//include the configuration file
include_once("auth/config.inc.php");

//initialize the mysql class
$tmp=configData($hostname,$username,$password,$dbname);
$mysqlClass = new mysqlClass();
$mysqlClass -> setval($tmp);

//connect to the mysql database
global $con;
$con=$mysqlClass -> dbConnect();

?>
Return current item: Create Your Own Directory