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

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

revision 1.2 by dpavlin, Tue Feb 20 15:17:06 2001 UTC revision 1.3 by dpavlin, Wed Feb 28 18:00:26 2001 UTC
# Line 20  if ($part && file_exists("templates/$par Line 20  if ($part && file_exists("templates/$par
20    
21  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
22    
23            $sql="select id,title,pdf from news where type='r' and visible order by priority desc,date desc";
24    #       print "$sql";
25            $sth = $dbh->prepare("$sql");
26            $sth->execute();
27            while ($row=$sth->fetchrow_hash()) {
28                    $results[]=$row;
29            }
30            $smarty->assign("results",$results);
31    
32  $main=$smarty->fetch("$main_file.tpl");  $main=$smarty->fetch("$main_file.tpl");
33    

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

  ViewVC Help
Powered by ViewVC 1.1.26