只是想知道是否有人可以分享他们是否看到我的代码有问题:
$sql = "SELECT COUNT(*) FROM table_1";
$conn = new mysqli_connect($servername, $username, $password, $dbname) or die(mysqli_error($conn));
$result = mysqli_query($conn, $sql);
if (!$result) {
echo $conn->error;
}
$row = $result->fetch_row();
print_r($row);
$conn->close();
请帮忙???这将返回一个空白页面,但没有结果:(