Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if($_GET['url'] == 'me' || $_GET['url'] == 'account')
- {
- $news = $engine->fetch_array("SELECT title, id, date, short_text, topstory FROM cms_news_articles ORDER BY id DESC LIMIT 5");
- for($a = 1; $a <= 5; $a++)
- {
- $this->setParams('newsTitle-' . $a, $news['title']);
- $this->setParams('newsID-' . $a, $news['id']);
- $this->setParams('newsDate-' . $a, $news['date']);
- $this->setParams('newsCaption-' . $a, $news['short_text']);
- $this->setParams('newsIMG-' . $a, $news['topstory']);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement