10 |
|
|
11 |
$dbh->dbh_do("set datestyle='german'"); |
$dbh->dbh_do("set datestyle='german'"); |
12 |
|
|
13 |
$sql="select date(date),date,stocks.type as type,current,change,high,low,open from stocks order by stocks.date desc limit 1"; |
$sql="select date(date),date as time,stocks.type as type,current,change,high,low,open from stocks order by stocks.date desc limit 1"; |
14 |
$sth = $dbh->prepare("$sql"); |
$sth = $dbh->prepare("$sql"); |
15 |
$sth->execute(); |
$sth->execute(); |
16 |
if ($row=$sth->fetchrow_hash()) { |
if ($row=$sth->fetchrow_hash()) { |
23 |
$stock[]=$row; |
$stock[]=$row; |
24 |
$time=$row[time]; |
$time=$row[time]; |
25 |
$date=$row[date]; |
$date=$row[date]; |
26 |
|
$time=str_replace($date,"",$time); |
27 |
} |
} |
28 |
|
|
29 |
if ($time == "23:23:23" || $time == "21:21:21" || $time == "22:21:21" ) $time="CLOSE"; |
if ($time == "23:23:23" || $time == "21:21:21" || $time == "22:21:21" ) $time="CLOSE"; |