query(" SELECT name FROM labels WHERE ID = '$LabelID'"); if ($DB->record_count()) { list($LabelName) = $DB->next_record(); } $LabelNameSQL = " WHERE AliasLabel = '$LabelName'"; } */ if (isset($_POST['newalias'])) { $BadLabel = db_string($_POST['BadLabel']); $AliasLabel = db_string($_POST['AliasLabel']); $DB->query(" INSERT INTO label_aliases (BadLabel, AliasLabel) VALUES ('$BadLabel', '$AliasLabel')"); } if (isset($_POST['changealias']) && is_number($_POST['aliasid'])) { $AliasID = $_POST['aliasid']; $BadLabel = db_string($_POST['BadLabel']); $AliasLabel = db_string($_POST['AliasLabel']); if ($_POST['save']) { $DB->query(" UPDATE label_aliases SET BadLabel = '$BadLabel', AliasLabel = '$AliasLabel' WHERE ID = '$AliasID' "); } if ($_POST['delete']) { $DB->query(" DELETE FROM label_aliases WHERE ID = '$AliasID'"); } } ?>

Label Aliases$LabelName" : '')?>

query(" SELECT ID, BadLabel, AliasLabel FROM label_aliases $LabelNameSQL ORDER BY $OrderBy"); while (list($ID, $BadLabel, $AliasLabel) = $DB->next_record()) { ?>
Label Renamed from Submit