From 832f5fc65506bb4a94337dbb6a3191a20373d967 Mon Sep 17 00:00:00 2001 From: Robert Treat Date: Sat, 7 Feb 2015 15:52:44 -0500 Subject: [PATCH] Enable querying over inspected tables / views. This was based on a patch by Felipe Figueroa resolves #22 --- display.php | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/display.php b/display.php index 89bf92ac..87771db4 100644 --- a/display.php +++ b/display.php @@ -525,6 +525,21 @@ if ($save_history && is_object($rs) && ($type == 'QUERY')) //{ $misc->saveScriptHistory($_REQUEST['query']); + echo '

'; + if (is_object($rs) && $rs->recordCount() > 0) { // Show page navigation $misc->printPages($_REQUEST['page'], $max_pages, $_gets); @@ -814,7 +829,7 @@ $scripts .= "};\n"; $scripts .= "\n"; - // If a table is specified, then set the title differently + // Set the title based on the subject of the request if (isset($_REQUEST['subject']) && isset($_REQUEST[$_REQUEST['subject']])) { if ($_REQUEST['subject'] == 'table') { $misc->printHeader( @@ -827,7 +842,13 @@ $lang['strviews'].': '.$_REQUEST[$_REQUEST['subject']], $scripts ); - } + } + else if ($_REQUEST['subject'] == 'column') { + $misc->printHeader( + $lang['strcolumn'].': '.$_REQUEST[$_REQUEST['subject']], + $scripts + ); + } } else $misc->printHeader($lang['strqueryresults']); -- 2.39.5