I’ve been trying to display users selected profile picture chosen from the login page and display it on their content page but the image is not being displayed. the image file directory and image name are being inserted into the database just fine.
if(isset($user_id)) {
$user_id = $_SESSION['user_id'];
$sql1 = "SELECT profilepicture , id FROM user WHERE id = '$user_id' ";
$select= mysqli_query($conn, $sql1); // just for the owner of the account.
if(isset($user_id)){
if(mysqli_num_rows($select)>0){
$row = mysqli_fetch_assoc($select);
echo "
" ;
i was expecting, using this code, that the users chosen profile picture will be displayed on their content page