1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
define_tag(
'mySQLvars',
-nameSpace='show_',
-required='db',
-type='string',
-privileged);
local('output' = '<table>');
inline(
-database=#db,
-username=(client_username),
-password=(client_password),
-maxrecords='all',
-sql="SHOW VARIABLES;");
Iterate(Records_Array, local('record'));
#output += ('<tr><td>' +#record->(Join: '</td><td>')+ '</td></tr>');
/Iterate;
/inline;
#output += '</table>';
return(@#output);
/define_tag;
|