| 
<?php
/************************************************************
 Author            : Chandan Kumar
 Project            : Common
 Purpose            : Establish the database connection
 Created On        : 13-12-2012
 *****************************************************************/
 
 error_reporting(E_ALL);
 error_reporting(E_ALL && ~E_NOTICE);
 
 $ip_addr = $_SERVER['REMOTE_ADDR'];
 
 if($ip_addr == '127.0.0.1'){
 
 $link = mysql_connect('localhost', 'root', '');
 @mysql_select_db('test',$link);
 
 }else{
 
 
 
 }
 
 
 
 
 ?>
 |