/[pliva-si]/sections/annual.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 /sections/annual.inc

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

revision 1.1 by dpavlin, Mon Jul 9 14:25:36 2001 UTC revision 1.2 by dpavlin, Thu Sep 20 09:50:24 2001 UTC
# Line 4  if (! $type) $type="a"; Line 4  if (! $type) $type="a";
4    
5  $corp_dbh = new DBI("dbi:pg:corp","dpavlin host=localhost","");  $corp_dbh = new DBI("dbi:pg:corp","dpavlin host=localhost","");
6    
7  $sql="select id,town_date,title,body,pdf from news where type='$type' and visible order by priority desc,date desc";  $sql="select id,town_date,title,body,pdf from news where type='$type' and $visible_is_true order by priority desc,date desc";
8  #       print "$sql";  #       print "$sql";
9  $sth = $corp_dbh->prepare("$sql");  $sth = $corp_dbh->prepare("$sql");
10  $sth->execute();  $sth->execute();

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.26