Profile Picture using php and Mysql

Hi,

I have a problem, I am just getting the error at the bottom “There are no users yet!”

Heres the code, the profile image upload part works its just not displaying the image.

file_upload.php:


<html>

<head>

<meta charset="utf-8">

<title>Download</title>

</head>



<body>
	<?php
		$id = $_SESSION['id'];

       $sql = "SELECT * from Users";
        $result = mysqli_query($conn, $sql);
        if(mysqli_num_rows($result)> 0){
            while ($row = mysqli_fetch_assoc($result)){
                $id= $row['ID'];
                $sqlimg = "SELECT * FROM Profileimg WHERE UserID='$id'";
                $resultimg=mysqli_query($conn,$sqlimg);
                while($rowimg = mysqli_fetch_assoc($resultimg)){
                    echo "<div class=container>";
                        if($rowimg['status'] == 0){
                            echo "<img src= 'uploads/profile".$id.".jpg'>";
                        }else{

                            echo "<img src='uploads/pd.jpg'>";
                        }
                        echo "<p>".$row['username']."</p>";
                    echo "</div>";
                }
            }
        }else{
            echo "There are no users yet!";
        }
			
			
			
			
			
		
	
	
	?>
		 <?php
	
	
	?>

	<form action="upload.php" method="POST" enctype="multipart/form-data">





	<input type="file" name="file">

		<button type="submit" name="submit">UPLOAD</button>







	</form>

</body>

</html>```