/[corp_html]/inc/common.inc
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /inc/common.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by dpavlin, Fri Feb 23 15:23:34 2001 UTC revision 1.7 by dpavlin, Fri Feb 23 16:36:58 2001 UTC
# Line 21  while ($row=$sth->fetchrow_hash()) { Line 21  while ($row=$sth->fetchrow_hash()) {
21  }  }
22  $smarty->assign("news",$news);  $smarty->assign("news",$news);
23    
24  $sth = $dbh->prepare("select id,title from news where type='e' and visible order by date desc limit 5");  $sth = $dbh->prepare("select id,title from news where type='e' and visible order by priority desc,date desc limit 5");
25  $sth->execute();  $sth->execute();
26  while ($row=$sth->fetchrow_hash()) {  while ($row=$sth->fetchrow_hash()) {
27          $events[]=$row;          $events[]=$row;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.26