How to Add this code to my front page

Discussion in 'PHP' started by worlddomain, Jul 17, 2008.

  1. #1
    Hope someone can help here
    this is my index page

    <?php
    include("config.php"); 
    $keyword2=str_replace (" ", "+", $keyword);
    
    $f = "http://news.search.yahoo.com/search/news?p=$keyword2&ei=UTF-8";
    
    
    // Make sure that SimplePie is loaded
    require_once('simplepie.inc');
    include("header.php"); 
    
    $feedvariable = htmlspecialchars($f);
    		
    // Initialize new feed
    $feed = new SimplePie($f);
    
    $feed->init();
     
    
    // Loop through all of the items in the new array and display whatever we want.
    
    foreach($feed->get_items() as $item) 
    {
    	echo '<h4><a href="' . $item->get_link() . '" rel="shadowbox">' . $item->get_title() . '</a></h4>'	;
    	echo '<p>';
    	echo $item->get_description();
    	echo '</p><br />';
    
    
    
    
    }
    
    
    include("footer.php"); 
    
    ?>
    PHP:
    I want to add an amazon store code into it like
    http://astore.amazon.com/97dollarsites-20

    I'm not sure how to add it as it doesn't show up when I do..
    any help - thanks
     
    worlddomain, Jul 17, 2008 IP