php script that populates photos to a html div
<p>I currently have a picture page with about 250 jpeg. Images and I currently have a web page where I manually assigned a picture to a section on the page, however this is very time consuming and would like to create a script that will run through and assign the images to a div. While this normally would be easy my problem is the way they filed the images. On the web page I have a quad drawling, and each portion of the quad needs a image assigned to it. the image file names vary and is causing my headache:</p>

<p>The file format Ex is below. so each quad would have 4 images, the first set of numbers before the underscore is the pict id and the number in between the underscores is which section of the quad the pict goes to. But the pict id vary in length and I’m not sure how to go about this. Any thoughts or recommendations are appreciated.</p>

<ul>
<li>1234_1_01.jpeg</li>
<li>1234_2_03.jpeg</li>
<li>1234_3_02.jpeg</li>
<li>1234_4_01.jpeg</li>
<li>345422_1_01.jpeg</li>
<li>345422_2_02.jpeg and so on</li>
</ul>
