mirror of
https://github.com/vrana/adminer.git
synced 2026-01-03 14:20:41 +01:00
nl2br
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@57 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -6,7 +6,7 @@ if ($_POST) {
|
||||
}
|
||||
$error = mysql_error();
|
||||
}
|
||||
page_header(lang('SQL command'), (strlen($_GET["db"]) ? "" : "db"));
|
||||
page_header(lang('SQL command'));
|
||||
|
||||
if ($_POST) {
|
||||
if (!$result) {
|
||||
@@ -22,7 +22,7 @@ if ($_POST) {
|
||||
}
|
||||
echo "<tr>";
|
||||
foreach ($row as $val) {
|
||||
echo "<td>" . (isset($val) ? htmlspecialchars($val) : "<i>NULL</i>") . "</td>";
|
||||
echo "<td>" . (isset($val) ? nl2br(htmlspecialchars($val)) : "<i>NULL</i>") . "</td>";
|
||||
}
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user