diff --git a/functions.inc.php b/functions.inc.php index cd95408a..a3cc6e2b 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -212,6 +212,7 @@ function select($result) { $indexes = array(); $columns = array(); $blobs = array(); + $types = array(); for ($j=0; $j < count($row); $j++) { $field = $result->fetch_field(); if (strlen($field->orgtable) && $field->flags & 2) { @@ -234,6 +235,7 @@ function select($result) { if ($field->charsetnr == 63) { $blobs[$j] = true; } + $types[$j] = $field->type; echo "
$val
";
+ }
}
if (isset($links[$key]) && !$columns[$links[$key]]) {
$link = "edit=" . urlencode($links[$key]);
diff --git a/select.inc.php b/select.inc.php
index 87d87f51..fbbe19f5 100644
--- a/select.inc.php
+++ b/select.inc.php
@@ -147,6 +147,9 @@ for (var i=0; > i; i++) {
$val = '' . lang('%d byte(s)', strlen($val)) . '';
} else {
$val = (strlen(trim($val)) ? nl2br(htmlspecialchars($val)) : " ");
+ if ($fields[$key]["type"] == "char") {
+ $val = "$val
";
+ }
foreach ((array) $foreign_keys[$key] as $foreign_key) {
if (count($foreign_keys[$key]) == 1 || count($foreign_key["source"]) == 1) {
$val = '">' . "$val";