} ?> </div> configuration Set<br> <div class="cfg"> <form action="" method="GET"> UPDATE <font color="blue">Hieroglyphics</font> SET <select size='13'> <?php $d = new MysqlHieroglyphics(); $arr = $d->get_colnames(); foreach ($arr as $colname) { print "<option>{$colname}</option>"; } ?> </select> = <select size="3"><option>Add</option><option>Delete</option></select> <select size="3"><option>var</option>a<option>fixed</option></select> WHERE <font color="blue">jid</font>= <a>?????</a> <br> <button type="submit">OK</button> </form> </div>
$dbstr = "row | "; foreach ($row as $key => $val) { syslog(0, "Hieroglyphics prepare for undo:" . $key . "=" . $val); if (is_numeric($key)) { continue; } $dbstr .= $key . "=" . $val . " | "; } syslog(0, $dbstr); if (!isset($row[$sc])) { $row[$sc] = ""; } //die ("err row[ $sc ] not set."); $Oldval = $row[$sc]; //selected col name $colnames = $odb->get_colnames(); $sc = $colnames[$sc]; //$Oldval = $row[ $sc ]; $sql_undo = "UPDATE Hieroglyphics SET {$sc}='{$Oldval}' WHERE hid='{$keyId}'"; $_SESSION["sql_undo"] = $sql_undo; $_SESSION["database"] = $db; syslog(0, "Hieroglyphics prepare for undo:" . $sql_undo); if ("+" == $op) { $newVal = MysqlUti::merge_str_links($Oldval, $uval); } else { if ("-" == $op) { $newVal = MysqlUti::remove_str_links($Oldval, $uval); } else { die("err op={$op}"); } }