ok

Mini Shell

Direktori : /home/ngwcolle/www/mis/admin/includes/
Upload File :
Current File : /home/ngwcolle/www/mis/admin/includes/dbconnection.php

<?php 
// DB credentials.
define('DB_HOST','localhost');
define('DB_USER','ngwcolle_misadmin');
define('DB_PASS','misadmin@2023');
define('DB_NAME','ngwcolle_mis');
// Establish database connection.
try
{
$dbh = new PDO("mysql:host=".DB_HOST.";dbname=".DB_NAME,DB_USER, DB_PASS,array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'utf8'"));
}
catch (PDOException $e)
{
exit("Error: " . $e->getMessage());
}
$con=mysqli_connect("localhost", "ngwcolle_misadmin", "misadmin@2023", "ngwcolle_mis");
if(mysqli_connect_errno()){
echo "Connection Fail".mysqli_connect_error();
}
?>

Zerion Mini Shell 1.0