Access Denied: You are not Admin!"); mysqli_query($GLOBALS["link"], "UPDATE ".TB_PREFIX."vdata SET wood = '".(int) $_POST['wood']."', clay = '".(int) $_POST['clay']."', iron = '".(int) $_POST['iron']."', crop = '".(int) $_POST['crop']."', maxstore = '".(int) $_POST['maxstore']."', maxcrop = '".(int) $_POST['maxcrop']."' WHERE wref = '".$id."'") or die(mysqli_error($database->dblink)); header("Location: ../../../Admin/admin.php?p=village&did=".$id.""); ?>