If it is set to TRUE, the program successively tries all the statements,
and we get:
This feature would not work as expected if we tried more than one SELECT
statement. We would see only the results of the last SELECT statement.
Entering SQL Commands
[ 202 ]
Pretty Printing (Syntax-Highlighting)
By default, phpMyAdmin parses and highlights the various elements of any
MySQL statement it processes. This is controlled by $cfg['SQP']['fmtType'],
which is set to 'html' by default. This mode uses a specific color for each different
element (a reserved word, a variable, a comment, and so on) as described in the
$cfg['SQP']['fmtColor'] array located in the theme-specific layout.inc.php file.
The default values are:
$cfg['SQP']['fmtColor'] = array(
'comment' => '#808000',
'comment_mysql' => '',
'comment_ansi' => '',
'comment_c' => '',
'digit' => '',
'digit_hex' => 'teal',
'digit_integer' => 'teal',
'digit_float' => 'aqua',
'punct' => 'fuchsia',
'alpha' => '',
'alpha_columnType' => '#FF9900',
'alpha_columnAttrib' => '#0000FF',
'alpha_reservedWord' => '#990099',
'alpha_functionName' => '#FF0000',
'alpha_identifier' => 'black',
'alpha_variable' => '#800000',
'quote' => '#008000',
'quote_double' => '',
'quote_single' => '',
'quote_backtick' => ''
);
In the previous examples, fmtType was set to 'text' because this mode is more
legible in a book.
Pages:
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197