git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@57 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2007-07-06 09:33:47 +00:00
parent 8fbb3f5f4b
commit c2ffa90120
2 changed files with 3 additions and 3 deletions

View file

@ -93,7 +93,7 @@ if (!mysql_num_rows($result)) {
if (!isset($val)) { if (!isset($val)) {
$val = "<i>NULL</i>"; $val = "<i>NULL</i>";
} else { } else {
$val = (strlen(trim($val)) ? htmlspecialchars($val) : "&nbsp;"); $val = (strlen(trim($val)) ? nl2br(htmlspecialchars($val)) : "&nbsp;");
foreach ((array) $foreign_keys[$key] as $foreign_key) { foreach ((array) $foreign_keys[$key] as $foreign_key) {
if (count($foreign_keys[$key]) == 1 || count($foreign_key[2]) == 1) { if (count($foreign_keys[$key]) == 1 || count($foreign_key[2]) == 1) {
$val = '">' . "$val</a>"; $val = '">' . "$val</a>";

View file

@ -6,7 +6,7 @@ if ($_POST) {
} }
$error = mysql_error(); $error = mysql_error();
} }
page_header(lang('SQL command'), (strlen($_GET["db"]) ? "" : "db")); page_header(lang('SQL command'));
if ($_POST) { if ($_POST) {
if (!$result) { if (!$result) {
@ -22,7 +22,7 @@ if ($_POST) {
} }
echo "<tr>"; echo "<tr>";
foreach ($row as $val) { 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"; echo "</tr>\n";
} }