Skip to content

Instantly share code, notes, and snippets.

@GeertJohan
Created October 11, 2015 19:21
Show Gist options
  • Save GeertJohan/7c358c0183dab062707f to your computer and use it in GitHub Desktop.
Save GeertJohan/7c358c0183dab062707f to your computer and use it in GitHub Desktop.
<?php
echo '<div class="spendings">';
$f = fopen("http://developer.gulden.com/data/expenses.csv", "r");
while( ($line = fgetcsv($f)) !== false ) {
list($date, $description, $amount, $address) = $line;
echo '
<div class="spendings-row">
<div class="spendings-date">'.$date.'</div>
<div class="spendings-description">'.$description.'</div>
<div class="spendings-amount">
<a href="https://explorer.gulden.com/#/address/'.$address.'" target="_blank">'.$amount.'</a>
</div>
</div>';
}
fclose($f);
echo '</div>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment