Sending and fetching results feature complete
[speedfreak] / Server / application / views / api / results.php
diff --git a/Server/application/views/api/results.php b/Server/application/views/api/results.php
new file mode 100644 (file)
index 0000000..d823be0
--- /dev/null
@@ -0,0 +1,5 @@
+<?php echo "<?"; ?>xml version="1.0" encoding="utf-8" <?php echo "?>"; ?>
+
+<results>
+    <?php $i=1; foreach ($results as $r){ ?>   <result username="<?php echo $r->username; ?>" position="<?php echo $i; ?>" date="<?php echo $r->result_date; ?>" unit="<?php echo $r->unit; ?>" value="<?php echo $r->value; ?>" />
+<?php $i++; } ?></results>
\ No newline at end of file