MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.220.200.33
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/ppcad7no/generalmotorsju.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/generalmotorsju.com/search-result.php
<?php include("site-header.php");?>
  <!-- End Header --> 
   <?php
	 $searchKeyword=$_REQUEST['searchtext'];
	 $count=db_scalar("select count(*) from  tbl_category where 1 and  category_name like '%$_REQUEST[searchtext]%' and category_status='Active'");
	?>
  <!-- page-banner-section 
			================================================== -->
  <section class="page-banner-section">
    <div class="container">
      <h1>
        Search Result <?php if($count>0){?>
            <span style="font-size:15px; color:#FF9F9F;">"Total&nbsp;
            <?=$count?>
            &nbsp;Search Found"
            <? } ?></span>
      </h1>
      <ul class="page-depth">
        <li><a href="<?=$site_url?>/index.html">Home</a></li>
        <li class="active"><a href="javascript:void(0);">
          Search Result
          </a></li>
      </ul>
    </div>
  </section>
  <!-- End page-banner section --> 
  <!-- services section 
			================================================== -->
  <section class="services-section">
    <div class="container">
      <div class="services-box">
        <div class="row">
       <?php
	   $sql_category=db_query("select * from tbl_category where 1 and category_name LIKE '%$searchKeyword%' and category_status='Active' order by category_order_by asc");
if(mysqli_num_rows($sql_category)>0){
	?>
          <div class="col-md-12">
            <div class="row">
              <?php    
while($MAIN_CAT=mysqli_fetch_array($sql_category)){
@extract($MAIN_CAT);
?>  
              <div class="col-md-4">
                <div class="services-post"> <img src="<?=$site_url?>/uploaded_files/<?=$MAIN_CAT['category_image_name']?>" alt="<?php if($MAIN_CAT['category_is_product']=='Yes'){ ?> Manufacturers Exporters and Wholesale Suppliers of <?=$MAIN_CAT['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? }else{ ?> Service Provider of <?=$MAIN_CAT['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? } ?>" title="<?php if($MAIN_CAT['category_is_product']=='Yes'){ ?> Manufacturers Exporters and Wholesale Suppliers of <?=$MAIN_CAT['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? }else{ ?> Service Provider of <?=$MAIN_CAT['category_name']?> <?php echo $compDATA['admin_city']; ?> <?php echo $compDATA['admin_state']; ?> <? } ?>" style="width:100%; height:215px;">
                  <div class="services-content">
                    <h2>
                      <?=$MAIN_CAT['category_name'];?>
                    </h2>
                    <?php $description=strip_tags($MAIN_CAT['category_description']);?>
                    <p>
                      <?=substr($description,0,100);?>
                    </p>
                    <a href="<?=$site_url?>/<?=$MAIN_CAT['category_url']?>.html">Read More <i class="fa fa-angle-right"></i></a> </div>
                </div>
              </div>
              <? } ?>
            </div>
          </div>
          <? }else{ ?>
           <div class="col-md-12" style="margin-bottom:35px;">
           <p align="center" style="color:#EA0000; font-weight:bold; font-size:22px; line-height:35px; ">No Search Found !!<br/>
            Please Enter Valid Keyword..</p>
           </div>
           <? } ?>
        </div>
      </div>
    </div>
  </section>
  <!-- End services section --> 
  <!-- footer 
			================================================== -->
  <?php include("site-footer.php");?>

MMCT - 2023