100 pictures in the folder image_1.jpg image_2.jpg, etc. all 100 are shown on the site:
<?php for ($i = 1; $i < 100; $i++) { echo'<img src="image_'.$i.'.jpg" onclick="model_pic('.$i.')">'; } ?> It is necessary when you click on one of the pictures so that it opens another place on the page
<div> <img src="image_'.НУЖНАЯ ЦИФРА.'.jpg"> </div> preferably use only php and js