diff --git a/_notes/dwsync.xml b/_notes/dwsync.xml
index 297b33d..7dfeee8 100644
--- a/_notes/dwsync.xml
+++ b/_notes/dwsync.xml
@@ -1,10 +1,13 @@
" . $conn->error;
+}
+}
+ mysqli_close($conn);
+
+
+$myfile = fopen("data/$usr.as2", "w+") or die("Unable to open file!");
+
+fwrite($myfile, $data);
+
+fclose($myfile);
+?>
+
+