Location: PHPKode > scripts > Error Management > error-management/dbconnect.inc.php
<?
$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>";
}

?>
Return current item: Error Management