Unsupported PHP script for displaying weight data over time
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

export.php 395B

1234567891011121314151617
  1. <?PHP
  2. require('user-data.php');
  3. /* For format of user-data.php see comment in data.php.
  4. *
  5. * In addition, this script requires a START_DATE constant containing
  6. * the unix timestamp of the first entry in the $data array.
  7. */
  8. foreach ($data as $week => $value) {
  9. if ($value != -1) {
  10. echo date('Y-m-d', strtotime('+' . $week . ' weeks', START_DATE)), ';', $value, "\n";
  11. }
  12. }
  13. ?>