diff --git a/select.inc.php b/select.inc.php index de619736..d88083d2 100644 --- a/select.inc.php +++ b/select.inc.php @@ -195,7 +195,11 @@ function add_row(field) { echo "\n"; for ($j=0; $row = $result->fetch_assoc(); $j++) { if (!$j) { - echo '\n"; + echo ''; + foreach ($row as $key => $val) { + echo '"; + } + echo "\n"; } $unique_idf = implode('&', unique_idf($row, $indexes)); echo '"; diff --git a/todo.txt b/todo.txt index c56f6447..aa33c843 100644 --- a/todo.txt +++ b/todo.txt @@ -1,4 +1,4 @@ -Edit of fields with foreign key as
' . implode("", array_map('htmlspecialchars', array_keys($row))) . "
' . htmlspecialchars($key) . "
' . lang('edit') . "