visual studio c# .php ,i am able to store image in database but how to display image :    This part of the code is upload image into the database and save but how do i retrieve the image and display? Below are the code that i have done .

 
 

    <!doctype html>
        <html>
        <head>
            <?php
            include("config.php");
         
            if(isset($_POST['but_upload'])){
                $name = $_FILES['file']['name'];
                $target_dir = "upload/";
                $target_file = $target_dir . basename($_FILES["file"]["name"]);
        
                // Select file type
                $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
        
                // Valid file extensions
                $extensions_arr = array("jpg","jpeg","png","gif");
        
                // Check extension
                if( in_array($imageFileType,$extensions_arr) ){
                    
                    // Convert to base64 
                    $image_base64 = base64_encode(file_get_contents($_FILES['file']['tmp_name']) );
                    $image = 'data:image/'.$imageFileType.';base64,'.$image_base64;
        
                    // Insert record
                    $query = "insert into images(name,image) values('".$name."','".$image."')";
                   
                    mysqli_query($con,$query) or die(mysqli_error($con));
                    
                    // Upload file
                    move_uploaded_file($_FILES['file']['tmp_name'],'upload/'.$name);
        
                }
            
            }
            ?>
        <body>
            <form method="post" action="" enctype='multipart/form-data'>
                <input type='file' name='file' />
                <input type='submit' value='Save name' name='but_upload'>
            </form>
        </body>
        </html>

The above code i got this from a website call http://makitweb.com/upload-and-store-an-image-in-the-database-with-php/ 

below this line is the code i do not know where to add
where do i add the below code can help me edit?

    <?php
    
     $sql = "select image from images where id=1";
     $result = mysqli_query($con,$sql);
     $row = mysqli_fetch_array($result);
    
     $image_src2 = $row['image'];
     
    ?>
    <img src='<?php echo $image_src; ?>' >




