Location: PHPKode > projects > Ads Exchange Server > estigi_0.1.1_RC2/inc/bdconn.inc.php
<?php

/***************************************************************************
 *                             bdconn.inc.php
 *                            -------------------
 *   begin                : dom, Abril 2, 2007
 *   copyright            : (C)
 *   email                : @hp.com
 *   Desc                 : Coneccion con la base de datos
 *
 *
 ***************************************************************************/


if ( !defined('IN_ADSERVER') ) {
	die("Hacking attempt");
}

function bdConnect($db_Host, $db_User, $db_Pwd, $db_Db){

	$bdConn = mysql_connect($db_Host, $db_User, $db_Pwd)
	    or die("Could not connect : " . mysql_error());

	mysql_select_db($db_Db) or die("Could not select database $db_Db");
}
?>
Return current item: Ads Exchange Server