Location: PHPKode > projects > Slashster > slashster/html/rssmodule.php
<? 

# Slashster: Open Source Friend of a Friend Software
# Copyright 2004 Mark El-Wakil
# Contact: hide@address.com
# http://seventhcycle.net
#
# This file is part of Slashster.
#
# Slashster is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Slashster is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Slashster; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA




   $sql = "select * from RSS where Id!= 11 order by (Id=17) desc, rand() limit 5";
   $r = $this->DoQuery($sql,1);
 
?>

<?

   foreach ($r as $s)
   { ?>

<BR>
<table width=100% border=1 bordercolor=black cellspacing=0>

    <tr><td width=* colspan=2 align=center class="stdtable">
      <a class="stdtxt" target="_blank" href="<?= $s[SiteURL] ?>"><B><?= $s[Name] ?></b></a>
        </td>
    </tr>
    <tr>
        <td colspan=2 class="stdaltfilling"><?= $s[Txt] ?></td>
    </tr>
</table>
   <? }

?>
Return current item: Slashster