PHP Classes
elePHPant
Icontem

File: config.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of chandan Kumar  >  Alphabetical Search  >  config.php  >  Download  
File: config.php
Role: Configuration script
Content type: text/plain
Description: config.php
Class: Alphabetical Search
Get list of database records to complete text
Author: By
Last change: config.php
Date: 2 years ago
Size: 519 bytes
 

Contents

Class file image Download
<?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{
   
   

}




?>