大家好我试图使用php连接到数据库,它不会显示任何数据只有网站上线时的代码!我是php的新手,我确定它的内容是obvois,但感谢您的帮助!
<?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>
&#13;