Your IP : 3.144.95.167
<div class="row">
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-orange">
<div class="inner">
<?php $query=$db->query("select * FROM mdata WHERE gid = '$gid' AND did = '$did' " )or die(mysqli_error());
$num=mysqli_num_rows($query);
?>
<h3><?php echo $num; ?></h3>
<p>Members<?php //echo number_format($sumta, 2); ?></p>
</div>
<div class="icon">
<i class="fa fa-line-chart"></i>
</div>
<a href="#" class="small-box-footer">
Members <i class="fa fa-arrow-circle-right"></i>
</a>
</div>
</div><!-- ./col -->
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-purple">
<div class="inner">
<?php $query=$db->query("select * FROM cdata WHERE work=1 AND gid = '$gid' AND did = '$did'" )or die(mysqli_error());
$num=mysqli_num_rows($query);
$query2=$db->query("select * FROM cdata WHERE work=0 AND gid = '$gid' AND did = '$did' " )or die(mysqli_error());
$num2=mysqli_num_rows($query2);
?>
<h3><?php echo $num; ?></h3>
<p>Converts<?php // echo number_format($sumtb, 2); ?></p>
</div>
<div class="icon">
<i class="fa fa-line-chart"></i>
</div>
<a href="#" class="small-box-footer">
<?php echo $num2; ?> Visitors <i class="fa fa-arrow-circle-right"></i>
</a>
</div>
</div><!-- ./col -->
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-maroon">
<div class="inner">
<?php $query=$db->query("SELECT * FROM mdata WHERE worker=1 AND gid = '$gid' AND did = '$did' " )or die(mysqli_error());
$num=mysqli_num_rows($query);
?>
<h3><?php echo $num; ?></h3>
<p><?php // echo $num2; ?> Church Workers</p>
</div>
<div class="icon">
<i class="fa fa-line-chart"></i>
</div>
<a href="#" class="small-box-footer">
Workers <i class="fa fa-arrow-circle-right"></i>
</a>
</div>
</div><!-- ./col -->
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-navy">
<div class="inner">
<h3><?php $query=$db->query("SELECT * FROM mdata WHERE worker=1 AND leader=1 AND gid = '$gid' AND did = '$did' " )or die(mysqli_error());
$num=mysqli_num_rows($query); echo $num; ?></h3>
<p>Leaders<?php // echo number_format($sumta+$sumtb+$sumtc, 2); ?></p>
</div>
<div class="icon">
<i class="fa fa-line-chart"></i>
</div>
<a href="#" class="small-box-footer">
Leaders <i class="fa fa-arrow-circle-right"></i>
</a>
</div>
</div><!-- ./col -->
</div><!-- /.row -->