Path : /home/vishqocm/pcib.in/config/
File Upload :
Current File : //home/vishqocm/pcib.in/config/database.php

<?php
// Database configuration
$db_host = 'localhost';
$db_user = 'vishqocm_popularcomputer23';
$db_pass = 'popularcomputer23';
$db_name = 'vishqocm_popularcomputer23';

// Create connection
try {
    $conn = new mysqli($db_host, $db_user, $db_pass, $db_name);
    
    // Check connection
    if ($conn->connect_error) {
        throw new Exception("Connection failed: " . $conn->connect_error);
    }
} catch (Exception $e) {
    // Log the error
    error_log("Database connection error: " . $e->getMessage());
    
    // Show user-friendly error message
    die("Sorry, there was a problem connecting to the database. Please try again later.");
}