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

How to Display User Information after Login in PHP MySql

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

Copyright ©2022 coderraj.com. All Rights Reserved.