/[corp_html]/inc/stocks.inc
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 /inc/stocks.inc

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

revision 1.6 by dpavlin, Mon Mar 25 12:45:45 2002 UTC revision 1.7 by dpavlin, Tue Mar 26 12:15:47 2002 UTC
# Line 10  Line 10 
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()) {
# Line 23  Line 23 
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";

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.26