home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 May / INTERNET103.ISO / pc / software / windows / building / php_nuke / html / blocks / block-sections_articles.php < prev    next >
Encoding:
PHP Script  |  2002-09-16  |  1.3 KB  |  27 lines

  1. <?php
  2.  
  3. /************************************************************************/
  4. /* PHP-NUKE: Web Portal System                                          */
  5. /* ===========================                                          */
  6. /*                                                                      */
  7. /* Copyright (c) 2002 by Francisco Burzi                                */
  8. /* http://phpnuke.org                                                   */
  9. /*                                                                      */
  10. /* This program is free software. You can redistribute it and/or modify */
  11. /* it under the terms of the GNU General Public License as published by */
  12. /* the Free Software Foundation; either version 2 of the License.       */
  13. /************************************************************************/
  14.  
  15. if (eregi("block-Sections_Articles.php", $PHP_SELF)) {
  16.     Header("Location: index.php");
  17.     die();
  18. }
  19.  
  20. global $prefix, $dbi;
  21.  
  22. $result = sql_query("SELECT artid, title FROM ".$prefix."_seccont order by artid DESC limit 0,10", $dbi);
  23. while(list($artid, $title) = sql_fetch_row($result, $dbi)) {
  24.     $content .= "<strong><big>·</big></strong> <a href=\"modules.php?name=Sections&op=viewarticle&artid=$artid\">$title</a><br>";
  25. }
  26.  
  27. ?>