Echo file url as image
<p>I have this line of code to echo an image (thumb)</p>

<pre><code>printf('&lt;img src="./uploads/designments/%s/thumbs/80x80"&gt;',$item['designment_id']);
</code></pre>

<p>On the page it will show the broken image icon. and if I look in the elements I see the following path: <code>/uploads/designments/71/thumbs/80x80"</code></p>

<p>If I look in the ftp to the corresponding file name I see here the path is:
 <code>/uploads/designments/71/thumbs/80x80/calculator_wheat_0.jpg</code></p>

<p>So what do I have to add to my code to get the corresponding filename in the URL?</p>