Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

What is wrong with this syntax - code snippet

$
0
0

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; ?>

Viewing all articles
Browse latest Browse all 13200