Profile Picture using php and Mysql


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.




<meta charset="utf-8">



		$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'";
                while($rowimg = mysqli_fetch_assoc($resultimg)){
                    echo "<div class=container>";
                        if($rowimg['status'] == 0){
                            echo "<img src= 'uploads/profile".$id.".jpg'>";

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

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

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

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