<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);

echo "STEP1|";

require_once 'db_config.php';

echo "STEP2|";

$conn = getConnectionGGR();
if ($conn) {
    echo "STEP3|";
    $r = $conn->query("SELECT 1 as test");
    if ($r) {
        $row = $r->fetch_assoc();
        echo "STEP4:" . $row['test'] . "|";
    } else {
        echo "ERR_QUERY:" . $conn->error . "|";
    }
    $conn->close();
} else {
    echo "STEP3:NULL|";
}
?>