Parent Directory | Revision Log | 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(); |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |