File "profile-20260115062520.php"

Full Path: /home/quiczmwg/lightspringdigitals.com/admin-20260114051102/profile-20260115062520.php
File size: 2.12 KB
MIME-type: text/x-php
Charset: utf-8

<?php session_start();
if(!isset($_SESSION['loginUser'])){
    // header("Location:dex.php");
}
// include_once ("../_db.php");
include 'head.php';
include 'header.php';
?>

<body class="skin-default fixed-layout">
            <!-- Sidebar scroll-->
            <?php include 'sidebar.php'; ?>

            <div class="page-wrapper">
            <!-- ============================================================== -->
            <!-- Container fluid  -->
            <!-- ============================================================== -->
            <div class="container-fluid">                
                <?php include 'nav.php'; ?>
                    <section class="mt-5">
                        <div class="container-fluid">
                            <div class="col-md-6 py-3 px-5 loging"></div>
                            <div class="col-md-6 py-3 px-5"></div>
                        
                            <?php
                            $email = $_SESSION['email'];
                            $userid = $_SESSION['userid'];
                            $sql = $conn->query("SELECT * FROM staff WHERE demail='$email' AND userid ='$userid' ");

                            if($sql->num_rows>0){
                                $row=$sql->fetch_assoc();
                            }
                            ?>

                            <p>
                                Fullname: <b><?php echo $row['dfname']?></b> <br>
                                Phone: <b><?php echo $row['dphone']?></b> <br>
                                Email: <b><?php echo $row['demail']?></b> <br>
                                Username: <b><?php echo $row['dusername']?></b> <br>

                                Reg Date: <b><?php echo formatDate ($row['ddate'])?></b> <br>
                            </p>
                        

                            <a href="logout.php">logout</a>

                        </div>

                        
                    </section>
                        </div>
                        </div>
    <?php 
    include 'footer.php';
     if(isset($_SESSION['mgs'])){ unset($_SESSION['mgs']);}?>
</body>