ok

Mini Shell

Direktori : /home2/selectio/www/wedding-info-new/
Upload File :
Current File : /home2/selectio/www/wedding-info-new/appointment_report.php

<?php include 'header.php'  ;


      include "header.php";
        $u_id=$_SESSION['buyer']['id'];
        // $query = "select tbl_alliances_register.* ,(select COUNT(id) FROM tbl_rewards WHERE tbl_rewards.user_id=tbl_alliances_register.id and tbl_rewards.verification_status='1') as verify from   tbl_alliances_register WHERE id = ". $u_id;
        $query = "SELECT b.*,c.*, a.* FROM tbl_appointment a LEFT JOIN seller_product_forms b ON b.id = a.product_id LEFT JOIN tbl_seller c on c.id = a.seller_id WHERE a.buyer_id   = ". $u_id;
        $prepared2 = $pdo->prepare($query);
        $prepared2->execute();
        $result = $prepared2->fetchAll(PDO::FETCH_ASSOC);
        
        
        ?>
<section class="form-section px-15  section-b-space">

        <div class="row" >
            <div class="col-12" >
                <table class="table table-sm" style="margin-top: 35px;">
                   <tr>
                       <th>Sl.No</th>
                       <th>Date Of Appointment</th>
                       <th>Company Name</th>
                       <th>Option</th>
                   </tr>
                    
                    
                   <?php 
                   $i=0;
                   foreach ( $result as $data ) { 
                   $i++;
                   ?> 
                    <tr>
                        <td> <?=$i?> </td>
                        <td><?=$data['appointment_time']?></td>
                        <td><?=$data['company_name']?></td>
                        <td><button class="btn btn-sm btn-success">View</button>
                            <button class="btn btn-sm btn-warning">Edit</button>
                            <button class="btn btn-sm btn-danger">Delete</button>
                        
                        </td>
                    </tr>
                    <?php } ?>
                    
                    
                    
                    
                    
                    
                </table>
                
                
            </div>
            
            
        </div>


</section>

<?php include 'footer2.php'  ?>

Zerion Mini Shell 1.0