PHP Classes
elePHPant
Icontem

File: dbconnect.inc.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Nadir Latif  >  Error Management  >  dbconnect.inc.php  >  Download  
File: dbconnect.inc.php
Role: Auxiliary script
Content type: text/plain
Description: contains database connection information
Class: Error Management
Report and manage system error occurences
Author: By
Last change: Initial commit
Date: 7 months ago
Size: 399 bytes
 

Contents

Class file image Download
<?
$hostname
='localhost';
$username="root";
$password="nadir";
$database="error_management";

if(!
$connection=mysql_connect($hostname, $username, $password)){
   echo
"Cannot connect to mysql server:<BR>";
   echo
mysql_error($connection);
   echo
"<BR><BR>";
}

if(!
mysql_select_db($database)){
   echo
"Error Selecting database<BR><BR>";
   echo
mysql_error($connection);
   echo
"<BR><BR>";
}

?>