Help for this page

Select Code to Download


  1. or download this
    $query = "SELECT distinct date, priceInCents FROM META_VAL WHERE date 
    +>= DATE_SUB(NOW(), INTERVAL 7 DAY) ORDER BY date ASC";
    $sth = $dbh->prepare($query);
    ...
        timefmt => '%Y-%m-%d $H:%M:%S',      # input time format
    );
    $mygraph->plot2d($data);
    
  2. or download this
    2015-03-02 10:09:00         4615 
    2015-03-02 20:22:00         4645 
    ...
    2015-03-04 20:49:00         4790 
    2015-03-05 10:54:00         4724 
    2015-03-05 20:54:00         4834