<h2>Monthly Plan</h2>
<?php
//   ini_set('display_errors', 1);
// ini_set('display_startup_errors', 1);
// error_reporting(E_ALL);
$plan_no =0;
     $q="select * from plans where type='2' ";
    $r = mysqli_query($conn,$q);
    // $plans = mysqli_fetch_assoc($r);
    
    while($plans = mysqli_fetch_assoc($r)){
        $plan_img  = '<img class=investment-plan-icon src="assets/global/images/'.$plans['plan_img'].'" alt=""/>';
        $plan_name  = $plans['name'];
        $plan_id  = $plans['id'];
        $plan_rate  = $plans['rate'];
        $plan_Investment  = $plans['min'];
        $plan_capital_back = $plans['cb'];
        $plan_return_type = 'Days';
        $plan_return_no = $plans['period'];
        $plan_withdrawal = "Anytime";
 $invest_now_part1='<a href="../schema-preview/?plan='; $invest_now_part2='"
                                       class="site-btn grad-btn w-100 centered"><i
                                            class="anticon anticon-check"></i>Invest Now</a>';
       $invest_now=	$invest_now_part1.$plan_id.$invest_now_part2;        
        ?>
			
	<!--  plan <?php echo $plan_no ?> -->
                   <div class="col-xxl-3 col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<div class=single-investment-plan>
	<?php echo $plan_img; ?>
<h3><?php echo $plan_name; ?></h3>
<p><?php echo $plan_rate ?></p>
<ul>
<li>Investment <span class=special>
<?php echo $plan_Investment ?>
</span></li>
<li>Capital Back <span><?php echo ucfirst($plan_capital_back) ?></span></li>
<li>Return Type <span><?php echo $plan_return_type; ?></span></li>
<li>Number of Days
<span><?php echo $plan_return_no; ?> </span>
</li>
<li>Profit Withdraw <span><?php echo $plan_withdrawal; ?></span></li>
</ul>
<?php echo $invest_now ?>
</div>
</div>
<!-- end of plan <?php echo $plan_no ?> -->
		<?php $plan_no++; }?>
<!-- end of plan </div> -->

