Jump to content

need help in php pl help


jackal4me

Recommended Posts

hi, this is shan and i need help in php 

recently i was working on a php parser that would fetch information from my blog but it isn't working as i planned and i need to helt the progress of my site that i'm going to publish the first problem with the main file would be this error:

Parse error: syntax error, unexpected T_ENDFOREACH in C:\wamp\www\html\hello.php on line 103

and the code is as follws in my hello.php file and they are as follow:

<ul id="widget">
      <?php include('include.php');?>
         <?php foreach($feed->get_items('0, 4') as $item) ?>
         <li>
            <?php echo $item->get_description(); ?>
            <h4><a href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a></h4>
            <p>
               <?php echo $item->get_date(); ?>
            </p>
         </li>
         <?php endforeach ; ?>
      </ul>
</div><!--end container-->

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.newsScroll.js"></script>

<script type="text/javascript">
   $('#widget').newsScroll({
      speed: 2000,
      delay: 5000
   });
   
   // or just call it like:
   // $('#widget').newsScroll();
</script>      </div>
    </div>

the include.php file is as follows:

<?php                   
require 'simplepie.inc';
$feed = new SimplePie('http://cooldesigner.info/blog/?feed=rss2');
$feed->handle_content_type();
?>

please help me as soon as u get this thing solved.

 

MOD EDIT:

 . . . 

BBCode tags added.

Link to comment
https://forums.phpfreaks.com/topic/233974-need-help-in-php-pl-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.