if image exists show image else show different image + image path
<pre><code>&lt;?php $img = shellImage($data[$y]-&gt;kunena_avatar_rows[$z]-&gt;avatar, 'noresize'); ?&gt;
&lt;?php if ($img-&gt;exist) : ?&gt;
    &lt;?php echo $img-&gt;draw(); ?&gt;
&lt;?php else: ?&gt;
  &lt;img src="media/avatars/resized/size200/nophoto.jpg"&gt;
&lt;?php endif; ?&gt;
</code></pre>

<p>Trying to figure out how to add a path to the image.</p>

<p>The value in the database for the image is like this users/avatar.jpg and the full path for the image would be <code>media/avatars/resized/size200/avatar.jpg</code></p>
