0) { $buildcapacity = 1000+$prod; $result = mysql_query("UPDATE Buildings SET Capacity='$buildcapacity' WHERE Id=$v"); } ?>