/[corp_html]/new.php
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 /new.php

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

revision 1.1 by dpavlin, Tue Feb 20 12:53:02 2001 UTC revision 1.2 by dpavlin, Wed Feb 21 15:52:31 2001 UTC
# Line 27  if ($section == "investor") { Line 27  if ($section == "investor") {
27    
28  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
29    
30  $sql_where="";  $sql_where="where visible is true";
31    
32  if (isset($id)) {  if (isset($id)) {
33          $sql_where.=" where id=$id ";          $sql_where.=" and id=$id ";
34  }  }
35    
36  if (! isset($more) || !file_exists("./news/$more")) {  if (! isset($more) || !file_exists("./news/$more")) {
37    
38  $sth = $dbh->prepare("select id,title,date,body,more,pdf from news $sql_where order by id desc");  $sth = $dbh->prepare("select id,title,town_date,body,more,pdf from news $sql_where order by id desc");
39  $sth->execute();  $sth->execute();
40  while ($row=$sth->fetchrow_hash()) {  while ($row=$sth->fetchrow_hash()) {
41          $data[]=$row;          $data[]=$row;

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

  ViewVC Help
Powered by ViewVC 1.1.26