1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 17:14:07 +02:00

Display MySQL variables

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@712 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-06-16 15:10:37 +00:00
parent bbaecdba80
commit f4e0a1cd92
5 changed files with 19 additions and 1 deletions

13
adminer/variables.inc.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
page_header(lang('Variables'));
echo "<table cellspacing='0'>\n";
$result = $dbh->query("SHOW VARIABLES");
while ($row = $result->fetch_assoc()) {
echo "<tr>";
echo "<th><code class='jush-sql_set'>" . htmlspecialchars($row["Variable_name"]) . "</code></th>";
echo "<td>" . (strlen(trim($row["Value"])) ? htmlspecialchars($row["Value"]) : "&nbsp;") . "</td>";
echo "</tr>\n";
}
$result->free();
echo "</table>\n";