Home >> PHP MySql >> How to Display User Profile after Login in PHP MySql

How to Display User Profile after Login in PHP MySql

<?php

    include("conn.php");
    $select="select * from users where user_id='".$_SESSION['user_id']."'";
    $query=mysqli_query($conn,$select);
    $fetch=mysqli_fetch_array($query_main);

?>

<!doctype html>  
<html>  
<head>  
        <title>My Profile</title>   
</head>  
<body>  
         <h3>My Profile</h3>  
         Name: <?php echo $fetch['name']?><br />
         Email: <?php echo $fetch['email']?><br />   
         Mobile: <?php echo $fetch['mobile']?><br />   
</body>  
</html> 

Post Your Comment

Next Questions
How to Display User Data after Login
How to Display User Information after Login

Copyright ©2022 coderraj.com. All Rights Reserved.