Image not showing
<p>I have used this code for accessing image from database to web page. But after debugging there is no image in image tag. </p>

<p>This code prints the correct path....but fails to return correct image in image tag...</p>

<pre><code>echo $_SESSION['user_image'];
</code></pre>

<p>How do I get the image in image tag?
plz help me.</p>

<pre><code>    while($row = mysql_fetch_assoc($result))
    {

    $_SESSION['user_id']    = $row['user_id'];
    $_SESSION['user_name']  = $row['user_name'];
    $_SESSION['user_level'] = $row['user_level'];
    //$_SESSION['user_image'] = $row['image'];
    $image=$row['image'];


    $user_image= trim('C:/xampp/htdocs/source/img/' . $image);
    //$user_image = imagecreatefromstring($user_image);
    $_SESSION['user_image']=$user_image;
    echo $_SESSION['user_image'];
    }
    echo "&lt;img src='".$row['image']."'&gt;";
    echo 'Welcome, &lt;img src= "'.$_SESSION['user_image'].'" alt="" width="50"     
    height="40" /&gt; ' . $_SESSION['user_name'] . '. &lt;br /&gt;&lt;a href="index.php"&gt;Proceed to  
    the forum overview&lt;/a&gt;.';
</code></pre>
