query("DELETE FROM prefs WHERE key='exname'"); $db->query("INSERT INTO prefs (key,value) VALUES ('exname','" . trim($_POST['exname']) . "')"); $db->query("DELETE FROM prefs WHERE key='groupname'"); $db->query("INSERT INTO prefs (key,value) VALUES ('groupname','" . trim($_POST['groupname']) . "')"); block("lightgreen", "set preferences"); exit; } ?>