Get a value from a column in Database

I have attached a screenshot, I wan to retrieve the District Name by taking a PINCODE entry in the inputbox and then displaying it in the textbox after Search Button is pressed. Thank you so much.