How do I search for images that begin with "xxx-"*.jpg in a given directory?
<p>On my product page I need to display the main image that is stored in the db 'image' field but also the additional images that are in the images folder that begin with the prodid followed by -1, -2 etc</p>

<p>For example:</p>

<pre><code>id | name      | image 
1  | product 1 | 1.jpg and also images 1-1.jpg, 1-2.jpg etc
2  | product 2 | 2.jpg and also images 2-1.jpg, 2-2.jpg etc
</code></pre>

<p>How do I search for images that begin with "prodid-"*.jpg in a given directory?</p>
