File Manager Script
X

Create New Item

File Folder

X

Search Results

File "_db.php"

Full path: /home/quiczmwg/lightspringdigitals.com/../../quiczmwg/solixproperties.org/_db.php
File size: 939 B
MIME-type: text/x-php; charset=us-ascii
Charset: utf-8

Download   Open   Edit   Advanced Edit   Back

<?php
// session_start();

$hostname = "localhost";
$dbUser = "quiczmwg_solixproperties";
$dbPassword = "!@#admin!@#";  // Use the correct password
$dbName = "quiczmwg_solixproperties";

// Try connecting to the database
$conn = mysqli_connect($hostname, $dbUser, $dbPassword, $dbName);

// Check if the connection was successful
//if (!$conn) {
    // Display custom error message with red color and centered on the page
    //echo '<div style="color: red; text-align: center; font-size: 20px; margin-top: 50px;">Unable to find website, please update your website server for solution!</div>';
    //exit;  // Stop script execution
//}

// If connection is successful, continue with the rest of the code

function clean($value){
    GLOBAL $conn;
    $value = trim($value);
    $value = htmlspecialchars($value, ENT_QUOTES, 'UTF-8');
    $value = strip_tags($value);
    $value = $conn->real_escape_string($value);
    return $value;
}
?>