Hi all im trying to connect to a data base using php, it wont display any data only the code when the website is live! Im new to php and am sure its something obvois but thanks for your help!
<?php
include_once 'Inclueds/dbh.inc.php';
?>
<!DOCTYPE html>
<head>
<link rel='stylesheet' type='text/css' href='Style.css'>
</head>
<body>
<?php
$sql = "SELECT * FROM users;";
$rsults = mysqli_query($conn, $sql);
$resultsCheck = mysqli_num_rows($rsults);
if ($resultsCheck > 0) {
while ($row = mysqli_fetch_assoc($rsults)){
echo $row['user_uid']. "<br>";
}
}
?>
</body>
</html>