Website connected to database

I want make a website connected to database

there is a input box and button to go to that web
so if I enter the number and click the button it will sent me to web in table

my code does not work