Parent Directory | Revision Log | Patch
revision 1.7 by dpavlin, Fri Feb 23 16:36:58 2001 UTC | revision 1.8 by dpavlin, Wed Feb 28 14:16:38 2001 UTC | |
---|---|---|
# | Line 14 $smarty->assign("menu",$menu); | Line 14 $smarty->assign("menu",$menu); |
14 | ||
15 | // fetch news | // fetch news |
16 | ||
17 | $sth = $dbh->prepare("select id,title from news where (type='n' or type='c' or type='r') and visible order by date desc limit 5"); | $sth = $dbh->prepare("select id,title from news where type<>'e' and visible order by date desc limit 5"); |
18 | $sth->execute(); | $sth->execute(); |
19 | while ($row=$sth->fetchrow_hash()) { | while ($row=$sth->fetchrow_hash()) { |
20 | $news[]=$row; | $news[]=$row; |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |