I'm getting a syntax error on line 109 with this code on Dreamweaver (not my code), the code seems to work but would like to fix the syntax if possible.
<?php foreach ($gallery->images as $image_id): ?> preloaded<?php echo $image_id; ?> = new Image(); preloaded<?php echo $image_id; ?>.src = "img/<?php echo $rug->data['id']; ?>_<?php echo $image_id; ?>_medium.jpg"; <?php endforeach; ?>