reindent xerte/export.php
remove commented out code
remove trailing whitespace
Use tempnam instead of example_zipper_new based on a timestamp
reindent
use db_query functions for SQL (remove dependence on MySQL); use tempnam to create zip in temporary directory and not in CWD.
remove dependency on MySQL resource being passed into function (use an array instead); document function