connect_error){ die("Ошибка подключения". $mysql->connect_error); } $query = "SELECT COUNT(*) AS count FROM reviews"; $result = $mysql->query($query); $row = $result->fetch_assoc(); $count = $row['count']; echo "$count"; ?>