--- investor.php 2001/03/17 16:27:06 1.7 +++ investor.php 2001/03/17 16:40:55 1.8 @@ -30,19 +30,7 @@ $smarty->assign("analysts",$analysts); $main=$smarty->fetch("analysts.tpl"); } else { - $dbh->dbh_do("set datestyle='german'"); - - $sql="select date(date),time(date),stocks.type as type,current,change,high,low,open,ordinal from stocks,stocks_order where stocks_order.type=stocks.type order by stocks.date desc,ordinal asc limit 2"; - $sth = $dbh->prepare("$sql"); - $sth->execute(); - while ($row=$sth->fetchrow_hash()) { - $stock[]=$row; - $time=$row[time]; - $date=$row[date]; - } - - if ($time == "23:23:23") $time="CLOSE"; - + include("stocks.inc"); $smarty->assign(array(stock=>$stock, date=>$date, time=>$time)); $main=$smarty->fetch("investor.tpl"); }