Здравствуйте.
Подскажите, пожалуйста, в чём проблема?
<?php
include("$_SERVER[DOCUMENT_ROOT]/config.php");
if (isset($_GET['page'])) {
$page = $_GET['page'];
}
else{
$page = 1;
}
$count = 7;
$count1 = ($page - 1) * $count;
$sql = "
SELECT * FROM `news_list` WHERE id < 0 LIMIT $count1, $count ORDER BY `id` DESC";
$result = mysqli_query($db, $sql);
$id = 1;
while( $r = mysqli_fetch_assoc($result) ){
?>
<div class="news-wid-list">
<img src="img/news/<?php echo $r['img']; ?>" alt="">
<div class="text-news-title">
<p class="textModal">
<span class="textModalSpan"><?php echo $r['news_title']; ?></span><br>
</p>
<a href="news-more-read.php?id=<?php echo $r["id"]; ?>">Շարունակելի</a>
</div>
</div>
<?php } ?>