"name", "group1" => "group 1", "group2" => "group 2", "group3" => "group 3", "download" => "primary download link", "type" => "type(s)", "party" => "release party", "party_year" => "release party year", "party_place" => "release party ranking", ); if ($_POST["requestid"]) { if ($_POST["approve"]) { $sql = sprintf("select * from editrequests where id=%d",$_POST["requestid"]); $r = mysql_query($sql); $o = mysql_fetch_object($r); $sql = sprintf("update prods set %s = '%s' where id=%d", $o->field,addslashes($o->newvalue),$o->prodid); $r = mysql_query($sql); $sql = sprintf("update editrequests set approved = 1, gloperatorid = %d where id=%d", $_SESSION["SCENEID_ID"],$_POST["requestid"]); mysql_query($sql); } if ($_POST["decline"]) { $sql = sprintf("update editrequests set approved = -1, gloperatorid = %d where id=%d", $_SESSION["SCENEID_ID"],$_POST["requestid"]); mysql_query($sql); } } ?>
field; ?>
process prod edit requests
requested by prod field from to action
nickname?> prodname?> field]?> $f?> newvalue?>