File "index-20260116021215.php"

Full Path: /home/custbahd/tourismfraternity.com/admin/counter/get-count/index-20260116021215.php
File size: 659 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

  include_once "../../../admin/counter/db/config.php";

  include '../../../admin/db/saucerer.php';

  $blog_id = $_GET['blog_id'];


$sql = "SELECT count(*) FROM comments WHERE blog_id='$blog_id' AND deleted='' ORDER BY id DESC"; 

$result = $conn->query($sql); 

while($row = mysqli_fetch_array($result)) {

    if ($row['count(*)']==0) {
        echo 'No Comments';
    } elseif ($row['count(*)']==1) {
        echo ''.$row['count(*)'].' Comment';
    } else {
        echo ''.$row['count(*)'].' Comments';
    }
    

}

?> 

                        </div>