\n"; $result = $dbh->query("SHOW VARIABLES"); while ($row = $result->fetch_assoc()) { echo ""; echo "" . htmlspecialchars($row["Variable_name"]) . ""; echo "" . (strlen(trim($row["Value"])) ? htmlspecialchars($row["Value"]) : " ") . ""; echo "\n"; } $result->free(); echo "\n";