Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(isset($_POST['seeNews'])) {
- foreach (fetch_news("http://feeds.bbci.co.uk/news/rss.xml") as $article) {
- ?>
- <h1><a href="<?php echo $article['link'] ?>"><?php echo $article['title']; ?></a></h1>
- <img id="newsImg" src="<?php echo $article['image']['url']; ?>" alt=""/>
- <p>
- <?php echo $article['description']; ?>
- </p>
- <?php
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement