--- wap.php 2001/03/17 16:17:07 1.7 +++ wap.php 2001/03/17 16:40:55 1.8 @@ -16,19 +16,7 @@ $smarty = new Smarty; if ($part && file_exists("templates/wap-$part.tpl")) { - $dbh->dbh_do("set datestyle='german'"); - - $sql="select date(date),time(date),type,current,change,high,low,open from stocks order by stocks.date desc,stocks.insert_date 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)); $wml=$smarty->fetch("wap-$part.tpl");