diff options
| author | Adam Soltys <[email protected]> | 2012-09-24 11:11:03 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2012-09-24 11:11:03 -0700 |
| commit | 6faa6d5e36e64372026e52a838334a3bb2353853 (patch) | |
| tree | fe03b4c856fc3235de9889199fef19388e54beb0 /record_transaction.php | |
| parent | 5b5053420d59d5cb7b53e905c1e183f37f3d660c (diff) | |
| download | coinos-server-6faa6d5e36e64372026e52a838334a3bb2353853.tar.gz coinos-server-6faa6d5e36e64372026e52a838334a3bb2353853.zip | |
Basic transaction recording
Diffstat (limited to 'record_transaction.php')
| -rw-r--r-- | record_transaction.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/record_transaction.php b/record_transaction.php new file mode 100644 index 00000000..c587a3e8 --- /dev/null +++ b/record_transaction.php @@ -0,0 +1,14 @@ +<?php + +$list = array ( + array($_GET['address'], $_GET['date'], $_GET['received'], $_GET['exchange']) +); + +$fp = fopen('transactions.csv', 'a'); + +foreach ($list as $fields) { + fputcsv($fp, $fields); +} + +fclose($fp); +?> |
