00001 <?php
00002
00003
00004
00005
00009 require('./tbl_properties_common.php');
00010 $url_query .= '&goto=tbl_properties_export.php&back=tbl_properties_export.php';
00011 require('./tbl_properties_table_info.php');
00012 ?>
00013
00014 <!-- Dump of a table -->
00015 <h2>
00016 <?php echo $strViewDump . "\n"; ?>
00017 </h2>
00018
00019 <?php
00020 if (isset($sql_query)) {
00021
00022
00023
00024
00025
00026
00027
00028 $parsed_sql = PMA_SQP_parse($sql_query);
00029 $analyzed_sql = PMA_SQP_analyze($parsed_sql);
00030 $sql_query = 'SELECT ';
00031
00032 if (isset($analyzed_sql[0]['queryflags']['distinct'])) {
00033 $sql_query .= ' DISTINCT ';
00034 }
00035
00036 $sql_query .= $analyzed_sql[0]['select_expr_clause'];
00037
00038 if (!empty($analyzed_sql[0]['from_clause'])) {
00039 $sql_query .= ' FROM ' . $analyzed_sql[0]['from_clause'];
00040 }
00041 if (!empty($analyzed_sql[0]['where_clause'])) {
00042 $sql_query .= ' WHERE ' . $analyzed_sql[0]['where_clause'];
00043 }
00044 if (!empty($analyzed_sql[0]['group_by_clause'])) {
00045 $sql_query .= ' GROUP BY ' . $analyzed_sql[0]['group_by_clause'];
00046 }
00047 if (!empty($analyzed_sql[0]['having_clause'])) {
00048 $sql_query .= ' HAVING ' . $analyzed_sql[0]['having_clause'];
00049 }
00050 if (!empty($analyzed_sql[0]['order_by_clause'])) {
00051 $sql_query .= ' ORDER BY ' . $analyzed_sql[0]['order_by_clause'];
00052 }
00053
00054
00055 PMA_showMessage($GLOBALS['strSQLQuery']);
00056 }
00057
00058 $export_type = 'table';
00059 require_once('./libraries/display_export.lib.php');
00060
00061
00065 require_once('./footer.inc.php');
00066 ?>