Using a database view = evil incarnate?
In custom tables you do whatever you want. If a view is what you need, use it. However, you might consider separating the code in an exporter. See wp-admin/includes/export.php for a start. If you keep the actual SQL and the export format separate you can: create a new exporter for another table structure easily use … Read more