OverLord Shell
<?php
session_start();
require_once("db/conn.php");
$stid=base64_decode($_GET['id']);
//echo $catid;exit;
include_once("header.inc.php");
echo" SELECT * FROM `busdir_mst_all_company` WHERE `company_state`=$stid";exit;
$sqlcat=$connection->query("SELECT * FROM `busdir_mst_all_company` WHERE `company_state`=$stid");
$xcount=count($sqlcat);
//print_r($catdata);exit
?>
<section id="content">
<div class="container">
<div class="row">
<div class="col-md-12">
<ol class="breadcrumb">
<li><a href="index.php">Home</a></li>
<li class="active"><?php echo $catid?></li>
</ol>
</div>
</div>
<!--<div class="row">
<div class="col-md-12">
<h2 class="page-header"><?php echo $catrow['product_name']?></h2>
</div>
</div>-->
<div class="row">
<?php
while($catdata=$sqlcat->fetch_assoc()){
// echo $comp_id=$catdata['product_id'];
?>
<div class="col-md-6 col-sm-6" style="margin-bottom: 2%">
<?php
$sql1="select * from busdir_mst_all_company where company_state='".$catid."' " ;
//"select * from busdir_product_photo b ,busdir_product a,busdir_mst_all_company c where a.product_id=b.product_id and c.company_state='".$catid."' ";
//echo $sql1 ; exit;
//$getdata->free();
?>
<div class="subcategory_box shadow_box text-center" style="padding-top:179px;padding-left: 2px;box-shadow: 0px 0px 15px 0px #D6D6D6;margin-bottom: -2px; background: #ffffff;">
<div class="col-md-4">
<a href="product.php?id=<?php echo base64_encode($catdata['product_id'])?>"> <?php if($catdata['photo_path']!=''){?>
<img class="media-object" style=" margin-top:-114%; height: 187px; padding-left: -30px; border-width: 3px 3px 3px 3px;
border-style: solid; border-color: #ccc;"src="uploads/products/<?php echo $catdata['photo_path']?>" width="180" alt="" ></img>
<?php } else {?>
<img class="media-object" style=" margin-top:-114%; height: 187px; padding-left: -30px; border-width: 3px 3px 3px 3px;
border-style: solid; border-color: #ccc;"src="uploads/company_banner/Business-Audit-Servi-20160615154910.jpg" width="180" alt="" ></img>
<?php }?></a>
</div>
<div class="col-md-8">
<h3 class="text-uppercase" style="margin-top: -53%;"><a href="subcategory.php?id=<?php echo base64_encode($catdata['subcatid']);?>" title="<?php echo $catdata['catid'];?>"><?php echo $catdata['product_name'];?></a></h3>
<h5 style="margin-top: 10%; margin-left:4%;"> <?php if(strlen($catdata['description'])>=250){ echo substr($catdata['description'],'250')."..."; } else { echo $catdata['description']; } ?></p>
</h5>
<h5 style="margin-top:10%;"><a href="company.php?id=<?php echo base64_encode($catdata['my_company_id']);?>" title="<?php echo $catdata['my_company_id'];?>"> <?php echo $catdata['company_name'];?></a></h5>
</div>
</div>
</div>
<?php
}
?>
</div>
</div>
</section>
<?php include_once("footer.inc.php");//connClose();?>
xRyukZ - Copyright 2k19