%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux sh00666.bluehost.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64
User : ndkhermy ( 1200)
PHP Version : 8.5.12
Disable Function : NONE
Directory :  /home1/ndkhermy/public_html/website_358eb648/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home1/ndkhermy/public_html/website_358eb648/news.php
<?php include('header.php'); ?>

    <section class="page-title">
        <div class="container">
            <div class="row">
                <div class="col col-xs-12">
                    <h2>News</h2>
                    <ol class="breadcrumb">
                        <li><a href="<?=$base_url?>">Home</a></li>
                        <li>News</li>
                    </ol>
                </div>
            </div>
        </div>
    </section>
    
    
    <section class="blog-grid-section section-padding">
        <div class="container">
            <div class="news-grids">
                <?php
                $limit=2;
                $page= isset($_GET['page']) ? $_GET['page'] : 1;
                $start_from= ($page-1) * $limit;
                $query=mysqli_query($conn,"SELECT * FROM service_tbl WHERE STATUS=1 LIMIT $start_from, $limit");
                $n=1;
                while($fetch_row=mysqli_fetch_array($query)){ 
                ?>
                <div class="grid">
                    <div class="entry-media">
                        <img src="<?=$base_url?>images/Upload/service/<?=$fetch_row['image1']?>" alt>
                    </div>
                    <div class="entry-details">
                        <div class="entry-meta">
                            <ul>
                                <li><i class="fa fa-clock-o"></i><?=date('M d, Y', strtotime($fetch_row['pos_date']))?></li>
                            </ul>
                        </div>
                        <div class="entry-body"> 
                            <h3><a href="<?=$base_url?><?=$fetch_row['slug']?>-news.php"><?=$fetch_row['title1']?></a></h3>
                            <p><?=$fetch_row['title1_arabic']?></p>
                        </div>
                    </div>
                </div>
               <?php } ?>
            </div> <!-- end news-grids -->

            <div class="pagination-wrapper">
                <ul class="pg-pagination">
                    <?php
                    $sel= "SELECT COUNT(*) AS total FROM service_tbl";
                    $result=mysqli_query($conn,$sel);
                    $fetch_row=mysqli_fetch_assoc( $result);
                    $final=ceil($fetch_row['total'] / $limit);
                    for($i=1 ; $i <= $final ; $i++){

                echo "<li><a href='" . $base_url. "news.php?page=" . $i . "' class='ripple-effect current-page'>" . $i . "</a></li>";
                        
                    }
                    ?>
                </ul>
            </div>
        </div> <!-- end container -->
    </section>



<?php include('footer.php'); ?>

VaKeR 2022