Login Html
<form class="user" action="code.php" method="POST">
<div class="form-group">
<input type="email" name="email" class="form-control form-control-user" placeholder="Enter Email Address...">
</div>
<div class="form-group">
<input type="password" name="password" class="form-control form-control-user" placeholder="Password">
</div>
<button type="submit" name="login_btn" class="btn btn-primary btn-user btn-block">
Login
</button>
<hr>
<div class="text-center">
<a class="small" href="forgot-password.html">Forgot Password?</a>
</div>
</form>
Header in index.php
<span class="mr-2 d-none d-lg-inline text-gray-600 small">
<?php
echo $_SESSION['username'];
?>
</span>
<img class="img-profile rounded-circle" src="<?php echo $_SESSION['image']; ?>"
This is the header in index.php :
This is the image field in the user table in the database :
I want to display the profile image after login the image is in the image table in my database.
I'm a newbie in PHP