File "manage_member-20260113112411.php"

Full Path: /home/ovanhxso/public_html/panel/admin/manage_member-20260113112411.php
File size: 4.18 KB
MIME-type: text/x-php
Charset: utf-8

<?php
session_start();
include '../assets/constant/config.php';

try {
    $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
    $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
    echo "Connection failed: " . $e->getMessage();
}
?>

<?php include('include/sidebar.php'); ?>
<!-- Top Bar End -->
<?php include('include/header.php'); ?>
<div class="page-content-wrapper ">

    <div class="container-fluid">

        <div class="row">
            <div class="col-sm-12">
                <div class="page-title-box">
                    <div class="btn-group float-right">
                        <a href="add_product.php" class="btn btn-primary mb-3">Add New</a>
                    </div>
                    <h4 class="page-title">View Member</h4>
                </div>
            </div>
            <div class="clearfix"></div>
        </div>
        <!-- end page title end breadcrumb -->

        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-body">
                        <div class="table-responsive">

                            <table id="datatable-buttons" class="table table-striped table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;" enctype="multipart/form-data">
                                <thead>
                                    <tr>
                                        <th>Serial</th>
                                      
                                        <th>Name</th>
                                        <th>Email</th>
                                       
                                        <th>Phone</th>
                                        <th>Remark</th>
                                        <th>Amount</th>
                                        <th>Payment Id</th>
                                        <th>Action</th>
                                    </tr>
                                </thead>
                                <tbody>

                                    <?php $i = 1;
                                    $stmt = $conn->prepare("SELECT * FROM join_member  ");
                                    $stmt->execute();
                                    $record = $stmt->fetchAll();
                                   
                                    foreach ($record as $key) { ?>


                                        <tr>
                                           
  
                                            <td><?php echo $i; ?></td>
                                            
                                           
                                             <td><?php echo $key['name']; ?></td>
                                              <td><?php echo $key['email']; ?></td>
                                                <td><?php echo $key['phone']; ?></td>
                                                <td><?php echo $key['remark']; ?></td>
                                                <td><?php echo $key['amount']; ?></td>
                                                <td><?php echo $key['payment_id']; ?></td>
                                            <td>
                                                <a href="index9.php?id=<?php echo $key['id']; ?>"  class="btn btn-primary waves-effect waves-light"><i class="fa fa-print" aria-hidden="true"></i>
                                                </a>



                                            </td>
                                        </tr>
                                    <?php $i++;
                                    } ?>
                                </tbody>
                                </tbody>

                            </table>


                        </div><!--end /tableresponsive-->
                    </div><!--end card-body-->
                </div><!--end card-->
            </div><!--end col-->


        </div><!--end row-->



    </div> <!-- Page content Wrapper -->

</div> <!-- content -->

<?php include('include/footer.php'); ?>