Ich habe eben folgende Funktion in aadmin/inlcudes/functions/general.php neu erstellt:
Code:
function select_color() {
$color_query = xtc_db_query("select configuration_key,configuration_id, configuration_value, use_function,set_function from " . TABLE_CONFIGURATION . " where configuration_id = '" . $configuration['configuration_id'] . "'");
$color = xtc_db_fetch_array($color_query);
return xtc_draw_input_field($color['configuration_key'], $color['configuration_value'],'size=40') . '<a href="test.php">test</a>';
}
Wenn ich im Administrationsbereich in das Formular dann einen Text
eingebe, wird dieser nicht ?nernommen. Es erscheint dann wieder ein leeres
Input-Feld.
Vermutlich schaft mein Code es nicht, den eingegebenen Text zu speichern.
So habe ich den Befehl in meine DB eingetragen:
Code:
INSERT INTO `configuration` VALUES (283, 'COLOR_TEXT', '', 22, 5, '2005-03-18 18:22:19', '0000-00-00 00:00:00', NULL, 'select_color(');
Ich w?rde mich freuen, wenn mir dabei jemand helfen k?nnte.