--- history.php 2001/02/19 16:22:20 1.1 +++ history.php 2001/03/03 12:56:33 1.3 @@ -8,20 +8,19 @@ $section="about"; -$title="ABOUT US"; +$title="ABOUT US : History"; $lpic="about"; $lext=".gif"; $mpic="about.gif"; $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); - -$sth = $dbh->prepare("select num,name,type,note,street,town,country,phone,fax,email,website from worldwide where type='Subsidiary' order by num"); +$sth = $dbh->prepare("select year,description from history order by num asc"); $sth->execute(); -$menu=""; while ($row=$sth->fetchrow_hash()) { - $data[]=$row; + $history[]=$row; } +$smarty->assign("history",$history); $main=$smarty->fetch("history.tpl"); include("common.inc");