syntax error, unexpected T_ENDFOREACH
-
Hi there,
I am getting the error below :
syntax error, unexpected T_ENDFOREACH
on line 7<div id="slider"> <?php foreach($slides as $num => $slide) ;?> <?php if($slide['link'] != '') echo '<a href="' . $slide['link'] . '">'; ?> <img src="<?php echo $slide['src'] ?>" alt="" title="<?php echo $slide['caption']; ?>"> <?php if($slide['link'] != '') echo ''; ?> <?php endforeach; ?> </div>any help would be greatly appreciated
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘syntax error, unexpected T_ENDFOREACH’ is closed to new replies.