<?php
$con = mysqli_connect('localhost', 'root', '', 'glory_i');
if ($con) {
    $q = mysqli_query($con, "SELECT * FROM tbl_company");
    if ($q) {
        while ($r = mysqli_fetch_assoc($q)) {
            print_r($r);
        }
    } else {
        echo "Query failed: " . mysqli_error($con) . "\n";
    }
    mysqli_close($con);
} else {
    echo "Connection failed\n";
}
?>
