Created
October 11, 2015 19:21
-
-
Save GeertJohan/7c358c0183dab062707f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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