Type: | integer |
Default value: | 25 |
All those variables affect the query window feature. A SQL link or
icon is always displayed in the navigation panel. If JavaScript is enabled
in your browser, a click on this opens a distinct query window, which is a
direct interface to enter SQL queries. Otherwise, the right panel
changes to display a query box.
The size of this query window can be customized with
$cfg['QueryWindowWidth'] and
$cfg['QueryWindowHeight'] - both integers for the size in
pixels. Note that normally, those parameters will be modified in
layout.inc.php` for the theme you are using.
If $cfg['EditInWindow'] is set to true, a click on [Edit]
from the results page (in the Showing Rows section) opens the
query window and puts the current query inside it. If set to false,
clicking on the link puts the SQL query
in the right panel’s query box.
If $cfg['QueryHistoryDB'] is set to true, all your
Queries are logged to a table, which has to be created by you (see
$cfg['Servers'][$i]['history']). If set to false, all your
queries will be appended to the form, but only as long as your window is
opened they remain saved.
When using the JavaScript based query window, it will always get updated
when you click on a new table/db to browse and will focus if you click on
Edit SQL after using a query. You can suppress updating the
query window by checking the box Do not overwrite this query
from outside the window below the query textarea. Then you can browse
tables/databases in the background without losing the contents of the
textarea, so this is especially useful when composing a query with tables
you first have to look in. The checkbox will get automatically checked
whenever you change the contents of the textarea. Please uncheck the button
whenever you definitely want the query window to get updated even though
you have made alterations.
If $cfg['QueryHistoryDB'] is set to true you can
specify the amount of saved history items using
$cfg['QueryHistoryMax'].
The query window also has a custom tabbed look to group the features.
Using the variable $cfg['QueryWindowDefTab'] you can
specify the default tab to be used when opening the query window. It can be
set to either sql, files, history or full.