Can't display mssql image in a http table using php
<p>I know there are many post about displaying a image from mssql, but they seems dont work in my case if i want it display with other table items.</p>

<p>I can display the binary image indivially by the following code </p>

<p><code>echo $image=base64_decode($MyBinImg);</code></p>

<p>then when i wanted to display the image into a table using smarty, it doesnt work</p>

<p>php side:</p>

<pre><code>$smarty-&gt;assign("Photo",$image);
$smarty-&gt;assign("SomeText","hello world");
</code></pre>

<p>tpl side:</p>

<pre><code>&lt;some tags&gt;
..
...
&lt;tr&gt;
&lt;td style="background-color: #d0d0d0;"&gt;&lt;b&gt;TEXT&lt;/b&gt;&lt;/td&gt;
&lt;td style="background-color: #f0f0f0;"&gt;{$SomeText}&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="background-color: #d0d0d0;"&gt;&lt;b&gt;Photo&lt;/b&gt;&lt;/td&gt;
&lt;td style="background-color: #f0f0f0;"&gt;&lt;img src="{$Photo}"/&gt;&lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p>The table can display SomeText but not the Photo.
Can someone tell me how to display it.Thanks.</p>
