$key) { $sql_query .= $conj . '( ' . $key . ' ) '; $conj = 'OR '; } } else { $sql_query .= ' WHERE ' . $analyzed_sql[0]['where_clause']; } if (!empty($analyzed_sql[0]['group_by_clause'])) { $sql_query .= ' GROUP BY ' . $analyzed_sql[0]['group_by_clause']; } if (!empty($analyzed_sql[0]['having_clause'])) { $sql_query .= ' HAVING ' . $analyzed_sql[0]['having_clause']; } if (!empty($analyzed_sql[0]['order_by_clause'])) { $sql_query .= ' ORDER BY ' . $analyzed_sql[0]['order_by_clause']; } // TODO: can we avoid reparsing the query here? PMA_showMessage($GLOBALS['strSQLQuery']); } $export_type = 'table'; require_once('./libraries/display_export.lib.php'); /** * Displays the footer */ require_once('./footer.inc.php'); ?>