views/cms/index.php
PHP Code:
<img src="<?php echo base_url('images/large_pic.jpg');?>" width="200px">  <img src="<?php echo base_url();?>images/large_pic3.jpg" width="200px">  <img src="<?php echo base_url();?>images/large_pic4.jpg" width="200px">  <img src="<?php echo base_url();?>images/large_pic5.jpg" width="200px" height="165px">
<?php if(isset($images)) : ?>
<?php foreach ($images as $image) : ?>
<?php
//do whatever you need with each image
echo "images";
?>
<?php //endforeach; ?>
<?php else : ?>
<?php
// determine what to do if there are no images
echo "else images";
?>
<?php endif; ?>
I am using Debugger and have several errors:
<img src="<?php echo base_url('images/large_pic.jpg');?>" width="200px">  <img src="<?php echo base_url();?>images/large_pic3.jpg" width="200px">  <img src="<?php echo base_url();?>images/large_pic4.jpg" width="200px">  <img src="<?php echo base_url();?>images/large_pic5.jpg" width="200px" height="165px">
// undefined image file : <?php echo base_url('images/large_pic5.jpg');?>
// undefined image file : <?php echo base_url('images/large_pic3.jpg');?>
// undefined image file : <?php echo base_url('images/large_pic.jpg');?>
// undefined image file : <?php echo base_url('images/large_pic4.jpg');?>
<?php else : ?> // syntax error unexpected else
<?php endif; ?> // syntax error unexpected endif
Can anyone help me to fix the error next to // sign.
Thanks in advance.
" If I looks more intelligence please increase my reputation."