Have the following PHP:
<?php
session_start();
$conn = mysqli_connect("localhost", "test", "", "test");
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$sql = "SELECT status FROM updates";
if ($result = mysqli_query($conn, $sql)) {
while ($row = mysqli_fetch_row($result)) {
echo '<div class="statusRow">' . "Status: " . $row['status'] . '</div>';
}
mysqli_free_result($result);
}
mysqli_close($conn);
?>
The above is not returning the desired 'status' input, just blank. Not sure what I am missing here?