<?php
/*******************************************************************************
** File : dbconnect.php **
** Author : G.Ramkumar **
** Description : Passing parameters to db.php **
** **
** Date : 14/07/2005 **
** Last Modified : 02/08/2005 **
** PHP Version : 5.0.3 **
** **
*******************************************************************************/
include 'db.php';
/**************************************************************************************
Constructor Parameters :
query_process("SQL type" , "Host" , "DB name" , "Username" , "Password" ,"Port");
if Port is not present then,leave that parameter ie
query_process("SQL type" , "Host" , "DB name" , "Username" , "Password");
***************************************************************************************/
if(strstr($_SERVER['SCRIPT_NAME'],'login/'))
$dbstr=@file_get_contents("../db/connect_str.php");
else
$dbstr=@file_get_contents("db/connect_str.php");
$db_string=explode("||",$dbstr);
$db_type_=$db_string[0];
$host_=$db_string[1];
$db_name_=$db_string[2];
$user_=$db_string[3];
$pwd_=$db_string[4];
$pg_sql=new Query_process($db_type_,$host_,$db_name_,$user_,$pwd_,"5432");
?>