always use the existing timestamp value in the update statement else MySQL auto-update it to the current timestamp

This commit is contained in:
Loïc Chapeaux
2001-11-19 22:03:56 +00:00
parent 24a673eaa6
commit 7feaf78e91
2 changed files with 10 additions and 3 deletions

View File

@@ -6,9 +6,12 @@ $Id$
$Source$
2001-11-19 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* tbl_change.php3, lines 208-212: always use the existing timestamp
value in the update statement else MySQL auto-update it to the
current timestamp.
* main.php3: removed the "MySQL" column if no MySQL feature is allowed.
* Documentation.html, lines 958-966: added a faq entry about the invalid
"$cfgPmaAbsoluteUri" related problems.
* Documentation.html, lines 958-966: added a faq entry about the
invalid "$cfgPmaAbsoluteUri" related problems.
2001-11-18 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* db_details.php3, lines 178-492; tbl_properties.php3, lines 670-685: the

View File

@@ -205,7 +205,11 @@ for ($i = 0; $i < $fields_cnt; $i++) {
} // end if
$special_chars = htmlspecialchars($row[$field]);
$data = $row[$field];
$backup_field = '<input type="hidden" name="fields_prev[' . urlencode($field) . ']" value="' . urlencode($data) . '" />';
// loic1: if a timestamp field value is not included in an update
// statement MySQL auto-update it to the current timestamp
$backup_field = ($row_table_def['True_Type'] == 'timestamp')
? ''
: '<input type="hidden" name="fields_prev[' . urlencode($field) . ']" value="' . urlencode($data) . '" />';
} else {
// loic1: display default values
if (!isset($row_table_def['Default'])) {