Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. if($_GET['url'] == 'me' || $_GET['url'] == 'account')
  2. {
  3. $news = $engine->fetch_array("SELECT title, id, date, short_text, topstory FROM cms_news_articles ORDER BY id DESC LIMIT 5");
  4.  
  5. for($a = 1; $a <= 5; $a++)
  6. {
  7. $this->setParams('newsTitle-' . $a, $news['title']);
  8. $this->setParams('newsID-' . $a, $news['id']);
  9. $this->setParams('newsDate-' . $a, $news['date']);
  10. $this->setParams('newsCaption-' . $a, $news['short_text']);
  11. $this->setParams('newsIMG-' . $a, $news['topstory']);
  12. }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement