name : box.php
 <!-- Small boxes (Stat box) -->
      <div class="row">
        <div class="col-lg-3 col-md-6 col-xs-12">
          <!-- small box -->
          <div class="small-box bg-aqua">
            <div class="inner">
            <?php 
            include('../config/config.php');

            $sql = "SELECT  * FROM projects";
            $res = $conn->query($sql);
           $num_rows = $res->num_rows;

            ?>
              <h3>All</h3>

              <p><?php echo $num_rows."   Project"; ?></p>
            </div>
            
            <a href="#" class="small-box-footer">All Project</a>
          </div>
        </div>
        <!-- ./col -->
        <div class="col-lg-3 col-md-6 col-xs-12">
          <!-- small box -->
          <div class="small-box bg-green">
            <div class="inner">
              <h3>Interior</h3>
              <?php 
                include('../config/config.php');

                $sql = "SELECT  * FROM projects WHERE p_t_id ='T001' ";
                $res = $conn->query($sql);
                $num_rows = $res->num_rows;

                ?>
              <p><?php echo $num_rows."   Project"; ?></p>
            </div>
            <a href="#" class="small-box-footer">Interior Project</a>
          </div>
        </div>
        <!-- ./col -->
        <div class="col-lg-3 col-md-6 col-xs-12">
          <!-- small box -->
          <div class="small-box bg-yellow">
          <div class="inner">
          <h3>Architecture</h3>
          <?php 
            include('../config/config.php');

            $sql = "SELECT  * FROM projects WHERE p_t_id ='T002' ";
            $res = $conn->query($sql);
            $num_rows = $res->num_rows;

            ?>
          <p><?php echo $num_rows."   Project"; ?></p>
        </div>
            <a href="#" class="small-box-footer">Architecture Project</a>
          </div>
        </div>
        <!-- ./col -->
        <div class="col-lg-3 col-md-6 col-xs-12">
          <!-- small box -->
          <div class="small-box bg-red">
          <div class="inner">
          <h3>Visaul Commu</h3>
          <?php 
            include('../config/config.php');

            $sql = "SELECT  * FROM projects WHERE p_t_id ='T003' ";
            $res = $conn->query($sql);
            $num_rows = $res->num_rows;

            ?>
          <p><?php echo $num_rows."   Project"; ?></p>
        </div>
            <a href="#" class="small-box-footer">Visaul Communications Project</a>
          </div>
        </div>
        <!-- ./col -->
      </div>

© 2024 UnknownSec