Location: PHPKode > scripts > Simple Database Class > simple-database-class/connection.php
<?php
/* 

Developed by Atul Hansaliya
More details : http://www.beyondmart.com 

*/

define('USE_PCONNECT', 'false');

/// Change in following as per your database configuration

$hostnm="";
$user="";
$pwd="";
$dbname="";

// MySql connection and DB selection
$conn=mysql_connect($hostnm,$user,$pwd) or die("MySqlconnection problem. Please Try again ....");
$dbselect=mysql_select_db($dbname) or die("Database selection problem. Please Try again ....");
//
?>
Return current item: Simple Database Class