userdata["acclevel"] < 80) die ("Access denied!"); $edlist = new EditList("ribbonTriggerId", "hlstats_Ribbons_Trigger", "game"); $edlist->columns[] = new EditListColumn("game", "Game", 0, true, "hidden", $gamecode); $edlist->columns[] = new EditListColumn("ribbonId", "Ribbon", 0, true, "select", "hlstats_Ribbons.ribbonName/ribbonId/game='$gamecode'"); $edlist->columns[] = new EditListColumn("awardCode", "Trigger Award", 0, false, "select", "hlstats_Awards.name/code/game='$gamecode'"); $edlist->columns[] = new EditListColumn("awardCount", "No. awards needed", 15, true, "text", "0", 64); $edlist->columns[] = new EditListColumn("special", "Special logic", 15, false, "text", "0", 64); if ($_POST) { if ($edlist->update()) message("success", "Operation successful."); else message("warning", $edlist->error()); } ?> Always set special logic = 0 unless you know what you're doing! query(" SELECT ribbonTriggerId, game, ribbonId, awardCode, awardCount, special FROM hlstats_Ribbons_Trigger WHERE game='$gamecode' ORDER BY ribbonTriggerId ASC "); $edlist->draw($result); ?>