<?php
$GLOBALS['hostname'] = 'localhost';
$GLOBALS['username'] = 'coolmans_db';
$GLOBALS['username1'] = 'coolmans_npeidcs';
$GLOBALS['password'] = 'e1E]0Mfua.0T4LL';
$GLOBALS['db'] = 'coolmans_kuliyapitiya';
$GLOBALS['dbMain'] = 'coolmans_pt2';
$GLOBALS['dbMainnew'] = 'coolmans_npeidcs';
	
$GLOBALS['dbinv'] = mysqli_connect($GLOBALS['hostname'],$GLOBALS['username'],$GLOBALS['password'],$GLOBALS['db']);
$GLOBALS['dbinvMain'] = mysqli_connect($GLOBALS['hostname'],$GLOBALS['username'],$GLOBALS['password'],$GLOBALS['dbMain']);
$GLOBALS['dbinvMainnew'] = mysqli_connect($GLOBALS['hostname'],$GLOBALS['username1'],$GLOBALS['password'],$GLOBALS['dbMainnew']);

// $GLOBALS['dbac'] = 'coolmans_r_pt';
// if ($_SESSION['COMCODE']=="A"){
 	$GLOBALS['dbac'] = 'coolmans_pt_kp_acca19';
// } else if ($_SESSION['COMCODE']=="B"){
// 	$GLOBALS['dbac'] = 'coolmans_r_pt_accb16';
// } else if ($_SESSION['COMCODE']=="C"){
// 	$GLOBALS['dbac'] = 'coolmans_r_pt_accc16';
// } else if ($_SESSION['COMCODE']=="R"){
// 	$GLOBALS['dbac'] = 'coolmans_r_pt_accd16';
// }


 $GLOBALS['dbacc'] = mysqli_connect($GLOBALS['hostname'],$GLOBALS['username'],$GLOBALS['password'],$GLOBALS['dbac']);
?>
