diff --git a/htdocs/sql/libraries/export/htmlexcel.php b/htdocs/sql/libraries/export/htmlexcel.php
new file mode 100755
--- /dev/null
+++ b/htdocs/sql/libraries/export/htmlexcel.php
@@ -0,0 +1,195 @@
+ 'strHTMLExcel',
+ 'extension' => 'xls',
+ 'mime_type' => 'application/vnd.ms-excel',
+ 'force_file' => true,
+ 'options' => array(
+ array('type' => 'text', 'name' => 'null', 'text' => 'strReplaceNULLBy'),
+ array('type' => 'bool', 'name' => 'columns', 'text' => 'strPutColNames'),
+ array('type' => 'hidden', 'name' => 'data'),
+ ),
+ 'options_text' => 'strOptions',
+ );
+} else {
+
+/**
+ * Outputs comment
+ *
+ * @param string Text of comment
+ *
+ * @return bool Whether it suceeded
+ */
+function PMA_exportComment($text) {
+ return TRUE;
+}
+
+/**
+ * Outputs export footer
+ *
+ * @return bool Whether it suceeded
+ *
+ * @access public
+ */
+function PMA_exportFooter() {
+ if (!PMA_exportOutputHandler('
+
+
+