MOON
Server: Apache
System: Linux ip-208-109-13-31.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els4.x86_64 #1 SMP Sat Aug 31 06:58:57 UTC 2024 x86_64
User: durgeshpandey215 (1013)
PHP: 8.1.29
Disabled: NONE
Upload Files
File: /home/durgeshpandey215/www/ipsol.skilladders.com/test_db.php
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

require_once 'controller/DB_Config.php';

$con = OpenCon();

$stmt = $con->prepare("SELECT page_url, name FROM `courses` LIMIT 5");
if ($stmt) {
    echo "Querying courses...<br>";
    if ($stmt->execute()) {
        $stmt->bind_result($purl, $name);
        while ($stmt->fetch()) {
            echo "Course: $name, URL: $purl <br>";
        }
    } else {
        echo "Execute failed: " . $stmt->error . "<br>";
    }
} else {
    echo "Prepare failed: " . $con->error . "<br>";
}

CloseCon($con);
?>