this is code of the page that I will get the image from(work perfectly)
<?php
    ob_start();
    session_start();
    include('connect.php');
    $id = $_GET['id'];
    $query = mysql_query("SELECT * FROM news WHERE id=$id");
    $row = mysql_fetch_assoc($query);
    header("Content-type: image/jpeg");
    echo $row['image'];
?>
and this is my page that i get the image to in
<?php
    ob_start();
    session_start();
    include('includes/connect.php');
    include('includes/phpCodes.php');
    $id = $_GET['id'];
    function showNews() {
        $data = array( 'id' => $id );
        $base = "includes/getImage.php";
        $url = $base. "?" . "id=36";
        echo $url;
        echo '<img src=includes/getImage.php class="newsImage">';
        echo '<h1><p class="subjecTitle">هنا العنوان</p></h1>   
                 <div class="newsContent">
                    hihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihihi
             </div>
        ';
    }
?>
<!DOCTYPE html>
<html>
    <head>
        <title>عينٌ على الحقيقة</title>
        <meta charset="utf-8">
        <link rel="stylesheet" type="text/css" href="css/mainstyle.css">
        <link rel="stylesheet" type="text/css" href="css/showstyle.css">
        <script lang="javascript">
            function logout( myFrame ) {
                myFram.submit();
            }
        </script>
    </head>
    <body>
        <div class="wrapper">
            <?php headerCode(); ?>
            <div class="content" dir="rtl">
                <?php showNews(); ?>
            </div>
        </div>
    </body>
</html> 
i think my wrong is in , can someone tell me how can I solve it?, sorry for my bad english
 
     
     
     
    